Some JIT fixes

This commit is contained in:
irisz64
2025-07-04 17:07:54 +02:00
parent 897abe8c2b
commit 444e2f56a3
6 changed files with 32 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ namespace Util {
enum LogLevel : u8 { Trace, Debug, Warn, Info, Error, Always };
#ifndef NDEBUG
static constexpr auto globalLogLevel = Debug;
static constexpr auto globalLogLevel = Trace;
#else
static constexpr auto globalLogLevel = Info;
#endif
@@ -24,15 +24,15 @@ void print(const std::string &fmt, Args... args) {
fmt::print(fmt::emphasis::bold | fg(fmt::color::red), fmt::runtime(fmt), args...);
} else if (messageType == Warn) {
fmt::print(fg(fmt::color::yellow), fmt::runtime(fmt), args...);
} else if (messageType == Info || messageType == Trace || messageType == Always) {
} else if (messageType == Info || messageType == Always) {
fmt::print(fmt::runtime(fmt), args...);
} else if (messageType == Debug) {
} else if (messageType <= Debug) {
#ifndef NDEBUG
fmt::print(fmt::runtime(fmt), args...);
#endif
}
#else
if (messageType == Debug) {
if (messageType <= Debug) {
#ifndef NDEBUG
fmt::print(fmt::runtime(fmt), args...);
#endif