use fmt properly in beammp_*f logging functions

This commit is contained in:
Lion Kortlepel
2022-03-24 14:45:53 +01:00
parent 9e0d02c6db
commit 7a814ed35e
7 changed files with 20 additions and 18 deletions

View File

@@ -209,10 +209,12 @@ void RegisterThread(const std::string& str);
#define beammp_trace(x)
#endif // defined(DEBUG)
#define beammp_errorf(_format, _args) beammp_error(fmt::format(_format, _args))
#define beammp_infof(_format, _args) beammp_info(fmt::format(_format, _args))
#define beammp_warnf(_format, _args) beammp_warn(fmt::format(_format, _args))
#define beammp_tracef(_format, _args) beammp_trace(fmt::format(_format, _args))
#define beammp_errorf(...) beammp_error(fmt::format(__VA_ARGS__))
#define beammp_infof(...) beammp_info(fmt::format(__VA_ARGS__))
#define beammp_warnf(...) beammp_warn(fmt::format(__VA_ARGS__))
#define beammp_tracef(...) beammp_trace(fmt::format(__VA_ARGS__))
#define beammp_lua_errorf(...) beammp_lua_error(fmt::format(__VA_ARGS__))
#define beammp_lua_warnf(...) beammp_lua_warn(fmt::format(__VA_ARGS__))
void LogChatMessage(const std::string& name, int id, const std::string& msg);

View File

@@ -49,7 +49,7 @@ private:
{ "list", [this](const auto& a, const auto& b) { Command_List(a, b); } },
{ "status", [this](const auto& a, const auto& b) { Command_Status(a, b); } },
{ "settings", [this](const auto& a, const auto& b) { Command_Settings(a, b); } },
{ "say", [this](const auto& a, const auto& b) { Command_Say(""); } }, // shouldn't actually be called
{ "say", [this](const auto&, const auto&) { Command_Say(""); } }, // shouldn't actually be called
};
Commandline mCommandline;