Draft: start lab 3
This commit is contained in:
@@ -60,6 +60,10 @@ logger_cur = _Generic((msg), \
|
||||
logger_cur = logger_buf; \
|
||||
}
|
||||
|
||||
#define CLEAN { \
|
||||
logger_cur = logger_buf; \
|
||||
}
|
||||
|
||||
#if LOGLEVEL >= 0
|
||||
#define ERROR(val) { \
|
||||
LOG(val); \
|
||||
@@ -84,7 +88,8 @@ logger_cur = _Generic((msg), \
|
||||
FLUSH("[DEBUG]: "); \
|
||||
}
|
||||
#define DEBUG_DTB(val) DEBUG(val)
|
||||
#define DEBUG_MEM(val) DEBUG(val)
|
||||
// #define DEBUG_MEM(val) DEBUG(val)
|
||||
#define DEBUG_MEM(val) CLEAN
|
||||
#else // #if LOGLEVEL >= 2
|
||||
#define DEBUG(val)
|
||||
#define DEBUG_DTB(val)
|
||||
|
||||
Reference in New Issue
Block a user