diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:52:21 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:52:21 +0200 |
commit | 39054829fa69bcfa2b468015dc3852a2f8deac9f (patch) | |
tree | e7726d90fb3c23a15919360dd10bdf709e7e087a /src/crepe/util/log.h | |
parent | dd9940720cde6975f79d65e08075687c47f0aec6 (diff) | |
parent | 5447ddd896eb49ea9fd9f9191a277fd1d5730aa3 (diff) |
merge master into loek/config
Diffstat (limited to 'src/crepe/util/log.h')
-rw-r--r-- | src/crepe/util/log.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/util/log.h b/src/crepe/util/log.h index bcc06a5..5ee67eb 100644 --- a/src/crepe/util/log.h +++ b/src/crepe/util/log.h @@ -10,16 +10,16 @@ // very illegal global function-style macros // NOLINTBEGIN -#define dbg_logf(fmt, ...) _crepe_logf_here(crepe::util::log_level::DEBUG, ": " fmt, __VA_ARGS__) -#define dbg_log(str) _crepe_logf_here(crepe::util::log_level::DEBUG, "%s: " str, "") -#define dbg_trace() _crepe_logf_here(crepe::util::log_level::TRACE, "%s", "") +#define dbg_logf(fmt, ...) _crepe_logf_here(crepe::util::LogLevel::DEBUG, ": " fmt, __VA_ARGS__) +#define dbg_log(str) _crepe_logf_here(crepe::util::LogLevel::DEBUG, "%s: " str, "") +#define dbg_trace() _crepe_logf_here(crepe::util::LogLevel::TRACE, "%s", "") // NOLINTEND #endif namespace crepe::util { -enum log_level { +enum LogLevel { TRACE, DEBUG, INFO, @@ -28,6 +28,6 @@ enum log_level { }; void logf(const char * fmt, ...); -void logf(enum log_level level, const char * fmt, ...); +void logf(enum LogLevel level, const char * fmt, ...); } // namespace crepe::util |