use include_tt::inject;
macro_rules! _exp_shielding {
[ -- #ctt ($($_path:tt)*) ] => {
macro_rules! _check_eq {
( "./tests/invalid_token.tt" ) => {}; ( $_unknown2: tt ) => { compile_error!("Escaping the `#` character does not work, check the `inject` macro.");
}
}
_check_eq!($($_path)*);
};
[ $($_unknown:tt)* ] => {
compile_error!("Escaping the `#` character does not work, check the `inject` macro.");
}
}
#[test]
fn test_shielding() {
inject! {
_exp_shielding! {
--
-#ctt("./tests/invalid_token.tt")
}
}
}