From 08d21290aea4bb2180b59ae3c534247e14b5dfca Mon Sep 17 00:00:00 2001 From: kodenamekrak <106346717+kodenamekrak@users.noreply.github.com> Date: Thu, 2 Jan 2025 01:03:18 +0000 Subject: [PATCH] Use inline for logger Avoids creating a new copy for each source file the logger is included in --- template/include/main.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/include/main.hpp b/template/include/main.hpp index b0e7baf..5cbefba 100644 --- a/template/include/main.hpp +++ b/template/include/main.hpp @@ -21,4 +21,4 @@ // log information from other files Configuration &getConfig(); -constexpr auto PaperLogger = Paper::ConstLoggerContext("#{id}"); \ No newline at end of file +inline constexpr auto PaperLogger = Paper::ConstLoggerContext("#{id}");