Macro to supply an extra logging condition.

This commit is contained in:
JoelKatz
2012-10-08 00:47:44 -07:00
parent 6a229d918c
commit 09fb035acc

View File

@@ -14,7 +14,9 @@
#include "types.h"
#define SETUP_LOG() static LogPartition logPartition(__FILE__)
#define cLog(x) if (logPartition.doLog(x)) Log(x)
#define tLog(c,x) if (!logPartition.doLog(x) || !(c)) do {} while(0); else Log(x)
#define cLog(x) if (!logPartition.doLog(x)) do {} while (0); else Log(x)
enum LogSeverity
{