diff options
author | Melody Horn <melody@boringcactus.com> | 2021-10-30 00:21:27 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-10-30 00:21:27 -0600 |
commit | 2c422c2841f24be9a3fb65b1bf090bc847bae2b4 (patch) | |
tree | 77949cf90ad6cb7d8ad4f19a0b9b50fc7102861a /src/lib.rs | |
parent | 2d242f308a0c14aa46407b20afaadead9b22150a (diff) | |
download | shit-wx-sys-2c422c2841f24be9a3fb65b1bf090bc847bae2b4.tar.gz shit-wx-sys-2c422c2841f24be9a3fb65b1bf090bc847bae2b4.zip |
..what is even fucking happening
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -1,9 +1,20 @@ -#![allow( - non_camel_case_types, - non_snake_case, - unaligned_references, - non_upper_case_globals, - deref_nullptr -)] - -include!(concat!(env!("OUT_DIR"), "/bindings.rs")); +#[cxx::bridge] +mod ffi { + unsafe extern "C++" { + include!("shit-wx-sys/src/wx-sys.h"); + + fn message_box(); + } +} + +pub use ffi::*; + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_message_box() { + message_box(); + } +} |