We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8c3a5 commit 2230557Copy full SHA for 2230557
src/lang_items.rs
@@ -1,8 +1,11 @@
1
+use core::intrinsics::abort;
2
use core::panic::PanicInfo;
3
4
#[panic_handler]
5
fn panic(_info: &PanicInfo) -> ! {
- loop {}
6
+ unsafe {
7
+ abort();
8
+ }
9
}
10
11
pub enum c_void {}
src/lib.rs
@@ -2,6 +2,9 @@
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
+#![feature(core_intrinsics)]
+
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
@@ -32,10 +35,8 @@ pub extern "C" fn main() -> ! {
32
35
33
36
34
37
gfxExit();
38
39
-
- // exit(0)
40
41
42
pub mod lang_items;
0 commit comments