mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 13:35:35 -04:00
Merge pull request #21 from TakaRikka/26-02-25-jsystem-debug
Make the rest of JSystem compiled in DEBUG
This commit is contained in:
@@ -48,7 +48,13 @@ class JORReflexible : public JOREventListener {
|
||||
public:
|
||||
#if DEBUG
|
||||
JORReflexible() {}
|
||||
#if TARGET_PC
|
||||
static JORServer* getJORServer() {
|
||||
OSPanic(__FILE__, __LINE__, "getJORServer is unimplemented");
|
||||
}
|
||||
#else
|
||||
static JORServer* getJORServer();
|
||||
#endif
|
||||
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
virtual void listen(u32, const JOREvent*);
|
||||
|
||||
@@ -209,8 +209,8 @@ void OSSetSoundMode(u32 mode);
|
||||
|
||||
DECL_WEAK void OSReport(const char* msg, ...);
|
||||
DECL_WEAK void OSVReport(const char* msg, va_list list);
|
||||
DECL_WEAK void OSPanic(const char* file, int line, const char* msg, ...);
|
||||
void OSFatal(GXColor fg, GXColor bg, const char* msg);
|
||||
DECL_WEAK void OSPanic NORETURN(const char* file, int line, const char* msg, ...);
|
||||
void OSFatal NORETURN(GXColor fg, GXColor bg, const char* msg);
|
||||
|
||||
// do these belong here?
|
||||
DECL_WEAK void OSAttention(const char* msg, ...);
|
||||
|
||||
@@ -106,5 +106,11 @@ typedef unsigned int uint;
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#if TARGET_PC && __cplusplus
|
||||
#define NORETURN [[noreturn]]
|
||||
#else
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user