7#define JUT_ASSERT(LINE, COND) \
9 JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, #COND); \
10 OSPanic(__FILE__, LINE, "Halt"); \
13#define JUT_ASSERT_REPORT(LINE, COND) \
15 JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, #COND); \
16 OSPanic(__FILE__, LINE, "Halt"); \
17 OSReport("[%s] %d\n", __FILE__, __LINE__); \
20#define JUT_PANIC(LINE, TEXT) \
21 JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, LINE, TEXT); \
22 OSPanic(__FILE__, LINE, "Halt");
24#define JUT_WARN(LINE, ...) \
25 JUTAssertion::setWarningMessage_f(JUTAssertion::getSDevice(), __FILE__, LINE, __VA_ARGS__); \
27#define JUT_LOG(LINE, ...) \
28 JUTAssertion::setLogMessage_f(JUTAssertion::getSDevice(), __FILE__, LINE, __VA_ARGS__)
30#define JUT_CONFIRM(LINE, COND) \
31 JUTAssertion::setConfirmMessage(JUTAssertion::getSDevice(), __FILE__, LINE, COND, #COND)
34#define JUT_ASSERT(...)
35#define JUT_ASSERT_REPORT(...)
39#define JUT_CONFIRM(...)
bool sAssertVisible
Definition JUTAssert.cpp:13
T cLib_calcTimer(T *value)
Definition c_lib.h:79
Definition JUTAssert.cpp:15
void setWarningMessage_f(u32 device, char *file, int line, const char *msg,...)
Definition JUTAssert.cpp:178
u32 flush_subroutine()
Definition JUTAssert.cpp:42
void setMessageCount(int msg_count)
Definition JUTAssert.cpp:224
void showAssert(u32 device, const char *file, int line, const char *msg)
Definition JUTAssert.cpp:149
void flushMessage_dbPrint()
Definition JUTAssert.cpp:71
void create()
Definition JUTAssert.cpp:18
void flushMessage()
Definition JUTAssert.cpp:59
u32 getSDevice()
Definition JUTAssert.cpp:84
void setVisible(bool visible)
Definition JUTAssert.cpp:218
void setLogMessage_f(u32 device, char *file, int line, const char *msg,...)
Definition JUTAssert.cpp:210
unsigned long u32
Definition types.h:10