aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorRonald Kinard <[email protected]>2015-09-17 02:20:36 -0500
committerRonald Kinard <[email protected]>2015-09-17 02:20:36 -0500
commit581d24ca2594ccc1d8aa1cf0804f9abb999689fb (patch)
tree4069c53c9e5dd3d31a021ef8bf2b11489b813fd4 /src/lib.rs
parentMerge pull request #1 from andor44/master (diff)
downloadctru-rs-581d24ca2594ccc1d8aa1cf0804f9abb999689fb.tar.xz
ctru-rs-581d24ca2594ccc1d8aa1cf0804f9abb999689fb.zip
Cleanup and lang items.
Lang items may be removed if we get a libstd.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 38ff61a..8311552 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,5 @@
#![feature(no_std)]
+#![feature(lang_items)]
#![no_std]
#![crate_type = "rlib"]
#![crate_name = "ctru"]
@@ -11,3 +12,7 @@ pub type Handle = u32;
pub mod srv;
pub mod gfx;
pub mod services;
+
+#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
+#[lang = "eh_personality"] extern fn eh_personality() {}
+#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }