1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-12-08 14:58:56 +00:00
Files
amiga-libnix2/sources/headers/debuglib.h
2014-01-05 20:02:29 +01:00

16 lines
344 B
C

#ifndef _DEBUGLIB_H
#define _DEBUGLIB_H
#ifdef DEBUG_LIB
extern 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 */