macro_rules! new_module {
[ @($const_t: ident) : [ $($path:tt)* ]; ] => {
include_tt::inject! {
#[allow(dead_code)]
#[allow(non_upper_case_globals)]
pub mod my_module {
pub const a: usize = 0;
pub const b: usize = 10;
#POINT_TRACKER_FILES:
pub const $const_t: (usize, usize) = (#tt($($path)*));
}
}
};
}
fn main() {
new_module! {
@(T): [examples / "full" . t 't']; }
assert_eq!(my_module::T, (0, 10));
}