summaryrefslogtreecommitdiff
path: root/include/kitchensink/internal/utils/kitlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kitchensink/internal/utils/kitlog.h')
-rw-r--r--include/kitchensink/internal/utils/kitlog.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/kitchensink/internal/utils/kitlog.h b/include/kitchensink/internal/utils/kitlog.h
new file mode 100644
index 0000000..1a56e53
--- /dev/null
+++ b/include/kitchensink/internal/utils/kitlog.h
@@ -0,0 +1,11 @@
+#ifndef KITLOG_H
+#define KITLOG_H
+
+#ifdef NDEBUG
+ #define LOG(...)
+#else
+ #include <stdio.h>
+ #define LOG(...) fprintf(stderr, __VA_ARGS__)
+#endif
+
+#endif // KITLOG_H