From 361c812e6aba4a414304457fb9170014159e4978 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Wed, 26 Jul 2017 01:53:40 -0600 Subject: Thread fixes + module update --- ctr-std/src/panicking.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ctr-std/src/panicking.rs') 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, -- cgit v1.2.3