mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Macro to supply an extra logging condition.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user