1#![allow(non_upper_case_globals)]
9#![allow(non_camel_case_types)]
10#![allow(non_snake_case)]
11#![allow(dead_code)]
12#![allow(clippy::all)]
13
14include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
15
16#[cfg(test)]
17mod tests {
18 use super::*;
19
20 #[test]
22 fn environment_and_runtime_roundtrip() {
23 unsafe {
24 let env = m3_NewEnvironment();
25 assert!(!env.is_null());
26 let runtime = m3_NewRuntime(env, 64 * 1024, core::ptr::null_mut());
27 assert!(!runtime.is_null());
28 m3_FreeRuntime(runtime);
29 m3_FreeEnvironment(env);
30 }
31 }
32}