From 8cfcda9b541172e33480c212584f0a36b7db58e1 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 5 Jul 2022 20:24:31 +0100 Subject: [PATCH] Make it harder to use #entry incorrectly --- agb-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb-macros/src/lib.rs b/agb-macros/src/lib.rs index 87dcaf6b..ed27f424 100644 --- a/agb-macros/src/lib.rs +++ b/agb-macros/src/lib.rs @@ -92,7 +92,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream { let mut #argument_name = unsafe { #argument_type ::new_in_entry() }; if cfg!(test) { - agb::test_runner::agb_start_tests(#argument_name, test_main); + ::agb::test_runner::agb_start_tests(#argument_name, test_main); } else { #(#stmts)* }