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(...)
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JUTAssert.cpp:12
void setWarningMessage_f(u32 device, char *file, int line, const char *msg,...)
Definition JUTAssert.cpp:175
u32 flush_subroutine()
Definition JUTAssert.cpp:39
void setMessageCount(int msg_count)
Definition JUTAssert.cpp:221
void showAssert(u32 device, const char *file, int line, const char *msg)
Definition JUTAssert.cpp:146
void flushMessage_dbPrint()
Definition JUTAssert.cpp:68
void create()
Definition JUTAssert.cpp:15
void flushMessage()
Definition JUTAssert.cpp:56
u32 getSDevice()
Definition JUTAssert.cpp:81
void setVisible(bool visible)
Definition JUTAssert.cpp:215
void setLogMessage_f(u32 device, char *file, int line, const char *msg,...)
Definition JUTAssert.cpp:207
unsigned long u32
Definition types.h:10