From e91c2d9b503460dfe99983c98e9aa969b0126f39 Mon Sep 17 00:00:00 2001 From: DankParrot Date: Sat, 22 Aug 2020 18:48:59 -0700 Subject: [PATCH] Make internal assert method inline --- src/logging/Logger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);