diff options
author | Oxore <oxore@protonmail.com> | 2023-12-29 00:20:57 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-12-29 00:20:57 +0300 |
commit | 5f8f5140eb6d7aa204d2565eec29fd7a2a934906 (patch) | |
tree | ae156bd1b7e982c8035c5cfa5546b587771232cb /debug.h | |
parent | 18893127524d87e47a948b9a92d8d8b2ab869852 (diff) |
Introduce runtime log level switching
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; |