diff --git a/src/lib.rs b/src/lib.rs index a5d3e92..283d530 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,30 +39,10 @@ //! engine.exec(); //! } //! ``` +use cpp::{cpp, cpp_class}; use qmetaobject::prelude::*; use std::ffi::c_void; -#[cfg(not(no_qt))] -use cpp::{cpp, cpp_class}; - -#[cfg(no_qt)] -mod no_qt { - pub fn panic() -> T { - panic!("This example is not supported on Qt 6 and above") - } -} - -#[cfg(no_qt)] -macro_rules! cpp { - {{ $($t:tt)* }} => {}; - {$(unsafe)? [$($a:tt)*] -> $ret:ty as $b:tt { $($t:tt)* } } => { - crate::no_qt::panic::<$ret>() - }; - { $($t:tt)* } => { - crate::no_qt::panic::<()>() - }; -} - cpp! {{ #include #include