diff options
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 |