diff --git a/src/logging/Logger.h b/src/logging/Logger.h index 24b0d09..cbd2c6c 100644 --- a/src/logging/Logger.h +++ b/src/logging/Logger.h @@ -161,14 +161,14 @@ namespace Feather::Log // Prints message for a failed assertion. Use the Assert or AssertOnce macros instead of calling this directly. template - void LogAssert(ChannelID channel, const char* file, uint64_t lineNum, const char* expr, const S& fmt, Args... args) + inline void LogAssert(ChannelID channel, const char* file, uint64_t lineNum, const char* expr, const S& fmt, Args... args) { std::string msg = fmt::format("{} ({}): {}", file, lineNum, fmt); Log(channel, Level::Assert, msg, args...); } // Prints message for a failed assertion. Use the Assert or AssertOnce macros instead of calling this directly. - void LogAssert(ChannelID channel, const char* file, uint64_t lineNum, const char* expr) + inline void LogAssert(ChannelID channel, const char* file, uint64_t lineNum, const char* expr) { // When no message is provided we print the asserted expression instead Log(channel, Level::Assert, "{} ({}): Assertion failed: {}", file, lineNum, expr);