9 #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)
10 #define DBG() DEBUG("\n");
11 #define DBG_ENABLED() (1)
13 #define DEBUG(fmt, ...)
15 #define DBG_ENABLED() (0)
18 #define ASSERT(expr) \
21 fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
27 void * myMalloc(size_t size);
28 void myFree(void *ptr);
30 #define userMalloc(size) malloc(size)
31 #define userFree(ptr) free(ptr)
33 #endif /* __COMMON_H__ */