From 672c7d02d1eb6a2ef1a4f65de37b9a807110734e Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 5 Dec 2021 01:31:44 +0100 Subject: [PATCH] Common: Add lua warn --- include/Common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/Common.h b/include/Common.h index c6b8b1e..4541ba3 100644 --- a/include/Common.h +++ b/include/Common.h @@ -149,7 +149,11 @@ void RegisterThread(const std::string& str); } while (false) #define beammp_lua_error(x) \ do { \ - Application::Console().Write(_this_location + std::string("[LUA_ERROR] ") + (x)); \ + Application::Console().Write(_this_location + std::string("[LUA ERROR] ") + (x)); \ + } while (false) +#define beammp_lua_warn(x) \ + do { \ + Application::Console().Write(_this_location + std::string("[LUA WARN] ") + (x)); \ } while (false) #define luaprint(x) Application::Console().Write(_this_location + std::string("[LUA] ") + (x)) #define beammp_debug(x) \