From 3d579390c8b652f1175cf14b553dac09c11064c4 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 16 Jul 2022 18:02:55 +0100 Subject: [PATCH] Make the num macro work if you don't depend on agb_macros yourself --- agb-fixnum/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index efa6586e..ebbe2179 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -9,10 +9,13 @@ use core::{ }, }; +#[doc(hidden)] +pub use agb_macros::num as num_inner; + #[macro_export] macro_rules! num { ($value:literal) => {{ - $crate::Num::new_from_parts(agb_macros::num!($value)) + $crate::Num::new_from_parts($crate::num_inner!($value)) }}; }