Merge pull request #21 from TakaRikka/26-02-25-jsystem-debug

Make the rest of JSystem compiled in DEBUG
This commit is contained in:
TakaRikka
2026-02-25 12:54:28 -08:00
committed by GitHub
6 changed files with 31 additions and 5 deletions
+6
View File
@@ -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*);
+2 -2
View File
@@ -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, ...);
+6
View File
@@ -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