mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-25 16:37:42 +01:00
18 lines
331 B
C++
18 lines
331 B
C++
#ifndef __PANIC_H__
|
|
#define __PANIC_H__
|
|
|
|
extern bool stop_at_panic;
|
|
extern bool i_have_panicked;
|
|
|
|
void panic(void);
|
|
void panic(const char* s);
|
|
|
|
class DontStopAtPanic
|
|
{
|
|
public:
|
|
DontStopAtPanic() { stop_at_panic = false; i_have_panicked = false; }
|
|
~DontStopAtPanic() { stop_at_panic = true; i_have_panicked = false; }
|
|
};
|
|
|
|
#endif
|