Make it harder to use #entry incorrectly

This commit is contained in:
Gwilym Kuiper 2022-07-05 20:24:31 +01:00
parent c15d24ad45
commit 8cfcda9b54

View file

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