summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-12-29 00:20:57 +0300
committerOxore <oxore@protonmail.com>2023-12-29 00:20:57 +0300
commit5f8f5140eb6d7aa204d2565eec29fd7a2a934906 (patch)
treeae156bd1b7e982c8035c5cfa5546b587771232cb /debug.h
parent18893127524d87e47a948b9a92d8d8b2ab869852 (diff)
Introduce runtime log level switching
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/debug.h b/debug.h
new file mode 100644
index 0000000..c1e8a22
--- /dev/null
+++ b/debug.h
@@ -0,0 +1,15 @@
+#pragma once
+
+/* SPDX-License-Identifier: Unlicense */
+
+#include <stdio.h>
+#include <stddef.h>
+
+#define LOG_LEVEL_OFF 0
+#define LOG_LEVEL_INFO 1
+#define LOG_LEVEL_DEBUG 2
+#define LOG_LEVEL_TRACE 3
+
+void FPrintRaw(FILE *s, void const *data_arg, size_t size);
+
+extern int g_log_level;