aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/panicking.rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-07-26 01:53:40 -0600
committerFenrir <[email protected]>2017-07-26 01:53:40 -0600
commit361c812e6aba4a414304457fb9170014159e4978 (patch)
tree6ac98462bd1eb469b2b09623719142bc87d62861 /ctr-std/src/panicking.rs
parentMerge pull request #36 from FenrirWolf/errDisp (diff)
downloadarchived-ctru-rs-361c812e6aba4a414304457fb9170014159e4978.tar.xz
archived-ctru-rs-361c812e6aba4a414304457fb9170014159e4978.zip
Thread fixes + module update
Diffstat (limited to 'ctr-std/src/panicking.rs')
-rw-r--r--ctr-std/src/panicking.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs
index 097be6f..c7139fd 100644
--- a/ctr-std/src/panicking.rs
+++ b/ctr-std/src/panicking.rs
@@ -30,6 +30,12 @@ thread_local! {
#[lang = "eh_personality"]
pub extern fn eh_personality() {}
+/// Determines whether the current thread is unwinding because of panic.
+// Which it won't be, since we still don't have stack unwinding.
+pub fn panicking() -> bool {
+ false
+}
+
/// Entry point of panic from the libcore crate.
#[lang = "panic_fmt"]
pub extern fn rust_begin_panic(msg: fmt::Arguments,