Make the num macro work if you don't depend on agb_macros yourself

This commit is contained in:
Gwilym Kuiper 2022-07-16 18:02:55 +01:00
parent 1be10ba450
commit 3d579390c8

View file

@ -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))
}}; }};
} }