add lua user types + bytearray

This commit is contained in:
MihailRis
2024-06-16 20:15:26 +03:00
parent 0338fe542b
commit 490727fdc0
5 changed files with 186 additions and 10 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
#include "lua_engine.hpp"
#include "api_lua.hpp"
#include "lua_custom_types.hpp"
#include "../../../debug/Logger.hpp"
#include "../../../util/stringutil.hpp"
@@ -45,7 +46,6 @@ static void create_libs(lua::State* L) {
addfunc(L, "print", lua::wrap<l_print>);
}
#include <iostream>
void lua::initialize() {
logger.info() << LUA_VERSION;
logger.info() << LUAJIT_VERSION;
@@ -81,6 +81,8 @@ void lua::initialize() {
createtable(L, 0, 0);
setglobal(L, LAMBDAS_TABLE);
newusertype<Bytearray, Bytearray::createMetatable>(L, "bytearray");
}
void lua::finalize() {