5 extern const int __numCases;
8 void __printf(const char *szFormat, ...);
9 #define LOG(_a) __printf _a
11 #define LOG(_a) /* hollow log */
14 #if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80)
25 #if defined(SDCC_hc08)
30 #if defined(SDCC_pic16)
35 void __fail(code const char *szMsg, code const char *szCond, code const char *szFile, int line);
36 void __prints(const char *s);
38 code const char *__getSuiteName(void);
39 void __runSuite(void);
41 #define ASSERT(_a) (++__numTests, (_a) ? (void)0 : __fail("Assertion failed", #_a, __FILE__, __LINE__))
42 #define ASSERT_FAILS(_a) (__numTests++, (_a) ? 0 : (__fail("Assertion failed", #_a, __FILE__, __LINE__), 1))
43 #define FAIL() FAILM("Failure")
44 #define FAILM(_a) __fail(_a, #_a, __FILE__, __LINE__)
50 #define UNUSED(_a) if (_a) { }