DEVEL15-tweak-vicelog-macros-20081218

LICENSE IPL10

deal with macro semicolon confusion for vicelog


(cherry picked from commit 12297b95885d030e5cae6bec2543bdeb3e65b5ee)
This commit is contained in:
Simon Wilkinson 2008-12-18 14:05:21 +00:00 committed by Derrick Brashear
parent 95e5fb1ebe
commit 7240f57058

View File

@ -43,8 +43,8 @@ extern void vFSLog(const char *format, va_list args);
extern void SetLogThreadNumProgram(int (*func) (void) );
/*@printflike@*/ extern void FSLog(const char *format, ...);
#define ViceLog(level, str) if ((level) <= LogLevel) (FSLog str)
#define vViceLog(level, str) if ((level) <= LogLevel) (vFSLog str)
#define ViceLog(level, str) do { if ((level) <= LogLevel) (FSLog str) } while (0)
#define vViceLog(level, str) do { if ((level) <= LogLevel) (vFSLog str) } while (0)
extern int OpenLog(const char *filename);
extern int ReOpenLog(const char *fileName);