11 #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)
12 #define DBG() DEBUG("\n");
13 #define DBG_ENABLED() (1)
15 #define DEBUG(fmt, ...)
17 #define DBG_ENABLED() (0)
20 #define ASSERT(expr) \
23 fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
29 #define userMalloc(size) malloc(size)
30 #define userFree(ptr) free(ptr)
32 #endif /* __COMMON_H__ */