6 void __fail(const char *szMsg, const char *szCond, const char *szFile, int line);
7 void __printf(const char *szFormat, ...);
9 #define ASSERT(_a) (__numTests++, (_a) ? (void)0 : __fail("Assertion failed", #_a, __FILE__, __LINE__))
10 #define LOG(_a) __printf _a
11 #define FAIL() FAILM("Failure")
12 #define FAILM(_a) __fail(_a, #_a, __FILE__, __LINE__)
14 typedef void (*TESTFUNP)(void);
16 // Provided by the suite
17 TESTFUNP *suite(void);
19 const char *getSuiteName(void);
23 #define UNUSED(_a) if (_a) { }
25 #if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80)
32 #if defined(SDCC_hc08)
37 #if defined(SDCC_pic16)