os-k/src/kaleid/kernel/ke/panic.h

25 lines
951 B
C

//----------------------------------------------------------------------------//
// GNU GPL OS/K //
// //
// Authors: spectral` //
// NeoX //
// //
// Desc: Looking to create some panic? Look no further! //
//----------------------------------------------------------------------------//
#ifndef _KALKERN_KE_PANIC_H
#define _KALKERN_KE_PANIC_H
#ifndef _KALKERN_H
#include <kalkern.h>
#endif
noreturn void StartPanic(const char *);
noreturn void CrashSystem(void);
extern const char *__panicmsg;
#define GetPanicStr() (__panicmsg)
#define SetPanicStr(str) (__panicmsg = (str))
#endif