mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Provide an empty #[entry] in lib.rs
This commit is contained in:
parent
2e505f9684
commit
20aebd349a
|
@ -365,7 +365,8 @@ pub mod test_runner {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[entry]
|
#[entry]
|
||||||
fn agb_test_main(gba: Gba) -> ! {
|
fn agb_test_main(gba: Gba) -> ! {
|
||||||
agb_start_tests(gba, test_main);
|
#[allow(clippy::empty_loop)]
|
||||||
|
loop {} // full implementation provided by the #[entry]
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn agb_start_tests(gba: Gba, test_main: impl Fn()) -> ! {
|
pub fn agb_start_tests(gba: Gba, test_main: impl Fn()) -> ! {
|
||||||
|
|
Loading…
Reference in a new issue