|
|
|
@ -79,7 +79,10 @@ mod tests {
|
|
|
|
|
use super::*;
|
|
|
|
|
#[test]
|
|
|
|
|
fn it_works() {
|
|
|
|
|
// nothing yet.
|
|
|
|
|
unsafe {
|
|
|
|
|
let ptr = api::GHOST_CreateSystem();
|
|
|
|
|
assert!(!ptr.is_null());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro_rules! static_assert {
|
|
|
|
@ -100,6 +103,6 @@ mod tests {
|
|
|
|
|
static_assert!(std::mem::size_of::<types::GHOST_GLFlags>() == std::mem::size_of::<DummyCEnum>(),
|
|
|
|
|
"C enum is not of type `int`. Either that or #[repr(transparent)] is broken. Aborting.");
|
|
|
|
|
static_assert!(std::mem::align_of::<types::GHOST_GLFlags>() == std::mem::align_of::<DummyCEnum>(),
|
|
|
|
|
"C enum has unexpected alignment differing from type `int`. Either that or #[repr(transparent)] is broken. Aborting.");
|
|
|
|
|
"C enum has unexpected alignment differing from type `int`. Either that or #[repr(transparent)] is broken. Aborting.");
|
|
|
|
|
// ..are there others?
|
|
|
|
|
}
|
|
|
|
|