diff options
| author | Ronald Kinard <[email protected]> | 2017-02-25 21:19:47 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-25 21:19:47 -0600 |
| commit | 4ecade8af14dff869c4d41dcd60040b69f06b64e (patch) | |
| tree | 0bfc16fd5a5e1b5698e0fe9b786caf9a0c4062ae /ctr-std/src/panicking.rs | |
| parent | Merge pull request #23 from panicbit/unmarked_api (diff) | |
| parent | implement buffered stdio (diff) | |
| download | archived-ctru-rs-4ecade8af14dff869c4d41dcd60040b69f06b64e.tar.xz archived-ctru-rs-4ecade8af14dff869c4d41dcd60040b69f06b64e.zip | |
Merge pull request #22 from FenrirWolf/stdio
Implement synchronized stdio
Diffstat (limited to 'ctr-std/src/panicking.rs')
| -rw-r--r-- | ctr-std/src/panicking.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index d6b922d..e0f9477 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -11,10 +11,19 @@ //! Implementation of various bits and pieces of the `panic!` macro and //! associated runtime pieces. +use io::prelude::*; + use any::Any; +use cell::RefCell; use fmt; use __core::fmt::Display; +thread_local! { + pub static LOCAL_STDERR: RefCell<Option<Box<Write + Send>>> = { + RefCell::new(None) + } +} + ///The compiler wants this to be here. Otherwise it won't be happy. And we like happy compilers. #[lang = "eh_personality"] extern fn eh_personality() {} |