debug::Logger

This commit is contained in:
MihailRis
2024-04-04 18:19:19 +03:00
parent f298d6ef1d
commit 0c411cf227
16 changed files with 233 additions and 51 deletions
+5 -2
View File
@@ -4,8 +4,11 @@
#include <iostream>
#include "lua_util.h"
#include "api_lua.h"
#include "../../../debug/Logger.h"
#include "../../../util/stringutil.h"
static debug::Logger logger("lua-state");
lua::luaerror::luaerror(const std::string& message) : std::runtime_error(message) {
}
@@ -19,8 +22,8 @@ void lua::LuaState::removeLibFuncs(const char* libname, const char* funcs[]) {
}
lua::LuaState::LuaState() {
std::cout << LUA_VERSION << std::endl;
std::cout << LUAJIT_VERSION << std::endl;
logger.info() << LUA_VERSION;
logger.info() << LUAJIT_VERSION;
L = luaL_newstate();
if (L == nullptr) {