mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
Add JUTConsole and JUTConsoleManager classes
This commit is contained in:
@@ -1,31 +1,8 @@
|
||||
#ifndef JSYSTEM_H
|
||||
#define JSYSTEM_H
|
||||
|
||||
#include "dolphin/os.h"
|
||||
#include "libforest/osreport.h"
|
||||
#include "JSystem/JKernel/JKRAram.h"
|
||||
#include "JSystem/JMacro.h"
|
||||
//#include "JSystem/JUtility/JUTException.h"
|
||||
|
||||
#define JLOG(msg) (OSReport(msg))
|
||||
#define JLOGF(msg, ...) (OSReport(msg, __VA_ARGS__))
|
||||
|
||||
/* Macros which will remove debug OSReport calls when not compiled for debug */
|
||||
#ifdef JSYSTEM_DEBUG
|
||||
#define JREPORT(msg) OSReport(msg)
|
||||
#define JREPORTF(msg, ...) OSReport(msg, __VA_ARGS__)
|
||||
#else
|
||||
#define JREPORT(msg)
|
||||
#define JREPORTF(msg, ...)
|
||||
#endif
|
||||
|
||||
#ifdef JSYSTEM_DEBUG
|
||||
#define JPANICLINE(line) ()
|
||||
#define JPANIC(line, msg) () /* TODO: JUTException */
|
||||
#define JPANICF(line, msg, ...) () /* TODO: JUTException */
|
||||
#else
|
||||
#define JPANICLINE(line) (OSErrorLine(line, "Abort."))
|
||||
#define JPANIC(line, msg) (OSErrorLine(line, msg))
|
||||
#define JPANICF(line, msg, ...) (OSErrorLine(line, msg, __VA_ARGS__))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user