Guard the UC_DEBUGF/UC_DEBUGFR with do{}while(0)
This commit is contained in:
@@ -280,8 +280,8 @@ void uc_logf(int log_level, int module, int raw,
|
||||
# define UC_DEBUGFR(mod, fmt, ...)\
|
||||
uc_logf(UC_LL_DEBUG, mod,1 , UC_SRC_LOCATION, fmt, ## __VA_ARGS__)
|
||||
#else
|
||||
# define UC_DEBUGF(mod, fmt, ...)
|
||||
# define UC_DEBUGFR(mod, fmt, ...)
|
||||
# define UC_DEBUGF(mod, fmt, ...) do {} while (0)
|
||||
# define UC_DEBUGFR(mod, fmt, ...) do {} while (0)
|
||||
#endif
|
||||
|
||||
/** Main macro that should be used for logging.
|
||||
|
||||
Reference in New Issue
Block a user