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, ...)\
|
# define UC_DEBUGFR(mod, fmt, ...)\
|
||||||
uc_logf(UC_LL_DEBUG, mod,1 , UC_SRC_LOCATION, fmt, ## __VA_ARGS__)
|
uc_logf(UC_LL_DEBUG, mod,1 , UC_SRC_LOCATION, fmt, ## __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define UC_DEBUGF(mod, fmt, ...)
|
# define UC_DEBUGF(mod, fmt, ...) do {} while (0)
|
||||||
# define UC_DEBUGFR(mod, fmt, ...)
|
# define UC_DEBUGFR(mod, fmt, ...) do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Main macro that should be used for logging.
|
/** Main macro that should be used for logging.
|
||||||
|
|||||||
Reference in New Issue
Block a user