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)
22 #if defined(SDCC_hc08)
27 #if defined(SDCC_pic16)
32 void __fail(code const char *szMsg, code const char *szCond, code const char *szFile, int line);
33 void __prints(const char *s);
35 code const char *__getSuiteName(void);
36 void __runSuite(void);
38 #define ASSERT(_a) (__numTests++, (_a) ? (void)0 : __fail("Assertion failed", #_a, __FILE__, __LINE__))
39 #define FAIL() FAILM("Failure")
40 #define FAILM(_a) __fail(_a, #_a, __FILE__, __LINE__)
44 #define UNUSED(_a) if (_a) { }