2 * @brief General purpose macros.
17 #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)
18 #define DBG() DEBUG("\n");
19 #define DBG_ENABLED() (1)
21 #define DEBUG(fmt, ...)
23 #define DBG_ENABLED() (0)
26 #define ASSERT(expr) \
29 fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
34 #endif /* __COMMON_H__ */