You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
Modified the entry and exception macros to accept a closure.
This allows:
entry!(|| {
let mut x = 1;
loop {
x = x + 1;
}
});
as well as allowing the original usage:
entry!(main);
fn main() -> ! {
let mut x = 1;
loop {
x = x + 1;
}
}
The same is true for exceptions:
exception!(*, |irqn: i16| {
panic!("Unhandled exception (IRQn = {})", irqn);
});
0 commit comments