Guard the UC_DEBUGF/UC_DEBUGFR with do{}while(0)

This commit is contained in:
Nils O. Selåsdal
2013-11-30 04:39:59 +01:00
parent 6706d59b4b
commit ec63c1e88f
+2 -2
View File
@@ -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.