squirrel_sys/lib.rs
1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(improper_ctypes)]
5
6include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
7
8#[cfg(test)]
9mod tests {
10 use super::sq_open;
11 use super::sq_close;
12
13 #[test]
14 fn build_check() {
15 unsafe {
16 let vm = sq_open(1024);
17 sq_close(vm);
18 }
19 }
20}