diff options
| author | Ronald Kinard <[email protected]> | 2017-08-02 00:46:21 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-08-02 00:46:21 -0500 |
| commit | e5d15c313942ba2524a83367277d13ad51f3bad3 (patch) | |
| tree | 200404e7ea82f6db3456cbe76f3542407da99037 /ctr-std/src/sys_common | |
| parent | Merge pull request #41 from FenrirWolf/panic-reboot (diff) | |
| parent | Properly set up main thread (diff) | |
| download | ctru-rs-e5d15c313942ba2524a83367277d13ad51f3bad3.tar.xz ctru-rs-e5d15c313942ba2524a83367277d13ad51f3bad3.zip | |
Merge pull request #44 from FenrirWolf/panic-unwind
Add unwinding strategy for panics
Diffstat (limited to 'ctr-std/src/sys_common')
| -rw-r--r-- | ctr-std/src/sys_common/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctr-std/src/sys_common/mod.rs b/ctr-std/src/sys_common/mod.rs index 6f47466..4a7d79f 100644 --- a/ctr-std/src/sys_common/mod.rs +++ b/ctr-std/src/sys_common/mod.rs @@ -77,6 +77,10 @@ pub fn at_exit<F: FnOnce() + Send + 'static>(f: F) -> Result<(), ()> { if at_exit_imp::push(Box::new(f)) {Ok(())} else {Err(())} } +macro_rules! rtabort { + ($($t:tt)*) => (::sys_common::util::abort(format_args!($($t)*))) +} + // Computes (value*numer)/denom without overflow, as long as both // (numer*denom) and the overall result fit into i64 (which is the case // for our time conversions). |