Lua: Add variadic print, LuaAPI

This commit is contained in:
Lion Kortlepel
2021-09-16 11:54:52 +02:00
parent 5978665ad6
commit 9b9c18a4c1
8 changed files with 213 additions and 40 deletions

View File

@@ -125,6 +125,7 @@ void RegisterThread(const std::string str);
#define beammp_warn(x) Application::Console().Write(_this_location + std::string("[WARN] ") + (x))
#define beammp_info(x) Application::Console().Write(_this_location + std::string("[INFO] ") + (x))
#define beammp_error(x) Application::Console().Write(_this_location + std::string("[ERROR] ") + (x))
#define beammp_lua_error(x) Application::Console().Write(_this_location + std::string("[LUA ERROR] ") + (x))
#define luaprint(x) Application::Console().Write(_this_location + std::string("[LUA] ") + (x))
#define beammp_debug(x) \
do { \