refactored to class

This commit is contained in:
2026-03-10 18:14:29 +03:00
parent f707ac1adb
commit 9058ea9b39
12 changed files with 40 additions and 35 deletions

View File

@@ -14,7 +14,7 @@ protected:
{
L = luaL_newstate();
luaL_openlibs(L);
omath::lua::register_lib(L);
omath::lua::LuaInterpreter::register_lib(L);
if (luaL_dofile(L, LUA_SCRIPTS_DIR "/color_tests.lua") != LUA_OK)
FAIL() << lua_tostring(L, -1);
}

View File

@@ -14,7 +14,7 @@ protected:
{
L = luaL_newstate();
luaL_openlibs(L);
omath::lua::register_lib(L);
omath::lua::LuaInterpreter::register_lib(L);
if (luaL_dofile(L, LUA_SCRIPTS_DIR "/source_engine_tests.lua") != LUA_OK)
FAIL() << lua_tostring(L, -1);
}

View File

@@ -14,7 +14,7 @@ protected:
{
L = luaL_newstate();
luaL_openlibs(L);
omath::lua::register_lib(L);
omath::lua::LuaInterpreter::register_lib(L);
if (luaL_dofile(L, LUA_SCRIPTS_DIR "/vec2_tests.lua") != LUA_OK)
FAIL() << lua_tostring(L, -1);
}

View File

@@ -14,7 +14,7 @@ protected:
{
L = luaL_newstate();
luaL_openlibs(L);
omath::lua::register_lib(L);
omath::lua::LuaInterpreter::register_lib(L);
if (luaL_dofile(L, LUA_SCRIPTS_DIR "/vec3_tests.lua") != LUA_OK)
FAIL() << lua_tostring(L, -1);
}

View File

@@ -14,7 +14,7 @@ protected:
{
L = luaL_newstate();
luaL_openlibs(L);
omath::lua::register_lib(L);
omath::lua::LuaInterpreter::register_lib(L);
if (luaL_dofile(L, LUA_SCRIPTS_DIR "/vec4_tests.lua") != LUA_OK)
FAIL() << lua_tostring(L, -1);
}