mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Make the num macro work if you don't depend on agb_macros yourself
This commit is contained in:
parent
1be10ba450
commit
3d579390c8
|
@ -9,10 +9,13 @@ use core::{
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[doc(hidden)]
|
||||||
|
pub use agb_macros::num as num_inner;
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! num {
|
macro_rules! num {
|
||||||
($value:literal) => {{
|
($value:literal) => {{
|
||||||
$crate::Num::new_from_parts(agb_macros::num!($value))
|
$crate::Num::new_from_parts($crate::num_inner!($value))
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue