diff options
| author | Joel Stålnacke <joel@saker.fi> | 2026-03-23 19:50:18 +0200 |
|---|---|---|
| committer | Joel Stålnacke <joel@saker.fi> | 2026-03-23 19:50:18 +0200 |
| commit | 3a1f9fe6800ef5fe7bbf1c0a5976720383ba84fe (patch) | |
| tree | f1218eb4085a654f6bb70671b41b4a74e646c052 /lib/log.h | |
| parent | 3870982f640260822bf605e693782ce9f5d79cf6 (diff) | |
Rewrite native code in Odin and use ECSodin
Diffstat (limited to 'lib/log.h')
| -rw-r--r-- | lib/log.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/log.h b/lib/log.h deleted file mode 100644 index e1cdcb8..0000000 --- a/lib/log.h +++ /dev/null @@ -1,23 +0,0 @@ -#include <stdio.h> - -enum { LOGL_TRACE, LOGL_DEBUG, LOGL_INFO, LOGL_WARN, LOGL_ERROR, LOGL_FATAL }; - -/* - * log_info("Hello %s!", "World"); - * log_warn("warning"); - */ -#define log_trace(...) dp_log_write(LOGL_TRACE, __FILE__, __LINE__, __VA_ARGS__) -#define log_debug(...) dp_log_write(LOGL_DEBUG, __FILE__, __LINE__, __VA_ARGS__) -#define log_info(...) dp_log_write(LOGL_INFO, __FILE__, __LINE__, __VA_ARGS__) -#define log_warn(...) dp_log_write(LOGL_WARN, __FILE__, __LINE__, __VA_ARGS__) -#define log_error(...) dp_log_write(LOGL_ERROR, __FILE__, __LINE__, __VA_ARGS__) -#define log_fatal(...) dp_log_write(LOGL_FATAL, __FILE__, __LINE__, __VA_ARGS__) - -void dp_log_set_output(void (*)(int level, const char *source, int line, const char *msg)); - -/* - * Sets the minimum log level. Level is inclusive. - */ -void dp_log_set_level(int level); - -void dp_log_write(int level, const char *source, int line, const char *fmt, ...); |
