summaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h
index dd2835c..0e0777c 100644
--- a/src/log.h
+++ b/src/log.h
@@ -2,6 +2,10 @@
#include <stdlib.h>
+#define TRACE(msg, ...) do { \
+ fprintf(stderr, "%s:%d:TRACE: " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
+}while(0)
+
#define FATAL(msg, ...) do { \
fprintf(stderr, "%s:%d:FATAL: " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
abort(); \