1
0
mirror of https://github.com/bebbo/amiga-gcc.git synced 2026-05-05 04:47:12 +00:00
Files
amiga-gcc/sys-include/debuglib.h
2022-12-31 15:57:19 +01:00

16 lines
354 B
C

#ifndef _DEBUGLIB_H
#define _DEBUGLIB_H
#ifdef DEBUG_LIB
extern __stdargs int KPrintF(const char *, ...);
#define DB(x) x
#define BUG KPrintF
#define ASSERT(x) { if (!(x)) KPrintF("Assertion failed: " #x " at file " __FILE__ ", line %ld\n", __LINE__); }
#else
#define DB(x)
#define BUG
#define ASSERT(x)
#endif /* DEBUG_LIB */
#endif /* _DEBUGLIB_H */