Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Jul 14, 2024
1 parent 9b31cbb commit 0c1c82f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sac/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ macro_rules! libc_main {
stak_vm::Vm,
};

#[cfg(not(test))]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
unsafe { libc::exit(1) }
}

#[cfg_attr(not(test), no_mangle)]
unsafe extern "C" fn main(argc: isize, argv: *const *const i8) -> isize {
let mut heap = [Default::default(); $heap_size];
Expand Down

0 comments on commit 0c1c82f

Please sign in to comment.