aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'log.h')
-rw-r--r--log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/log.h b/log.h
index bc1cf1e..ee16a21 100644
--- a/log.h
+++ b/log.h
@@ -22,9 +22,13 @@
#include "stringprintf.h"
+#ifdef NOLOG
+#define LOG(args...)
+#else
#define LOG(args...) do { \
fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \
} while(0)
+#endif
#define PERROR(...) do { \
fprintf(stderr, "%s: %s\n", StringPrintf(__VA_ARGS__).c_str(), \