pub struct GlobalVar<T> {
name: &'static str,
_phantom: std::marker::PhantomData<T>,
}
impl<T> GlobalVar<T> {}
struct GlobalVarDef {
name: &'static str,
kind: &'static str,
}
#[macro_export]
macro_rules! globals_vars {
($($name:ident: $ty:ty),*) => {
#[no_mangle]
pub fn global_vars() -> i32 {
$(
)*
}
};
}