aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/shared.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-11 11:55:01 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-11 11:55:01 +0100
commitaf3161e5265b56a3d33a1ed45597f85c34806928 (patch)
tree332101e2a95aebc09f907a73958de923be4b0a4d /unit_tests/shared.cpp
parentb1822d8d07f8ee34cef2e7e74391695dd4e1ea81 (diff)
downloadlanes-af3161e5265b56a3d33a1ed45597f85c34806928.tar.gz
lanes-af3161e5265b56a3d33a1ed45597f85c34806928.tar.bz2
lanes-af3161e5265b56a3d33a1ed45597f85c34806928.zip
Sample module deep test renamed deep_userdata_example
Diffstat (limited to 'unit_tests/shared.cpp')
-rw-r--r--unit_tests/shared.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unit_tests/shared.cpp b/unit_tests/shared.cpp
index 0c9516f..08025f2 100644
--- a/unit_tests/shared.cpp
+++ b/unit_tests/shared.cpp
@@ -8,7 +8,7 @@
8// ################################################################################################# 8// #################################################################################################
9// ################################################################################################# 9// #################################################################################################
10 10
11LANES_API int luaopen_deep_test(lua_State* L_); 11LANES_API int luaopen_deep_userdata_example(lua_State* L_);
12 12
13namespace 13namespace
14{ 14{
@@ -70,7 +70,7 @@ namespace
70 // a function that enables any lane to require "fixture" 70 // a function that enables any lane to require "fixture"
71 lua_CFunction sOnStateCreate = +[](lua_State* const L_) { 71 lua_CFunction sOnStateCreate = +[](lua_State* const L_) {
72 PreloadModule(L_, "fixture", luaopen_fixture); 72 PreloadModule(L_, "fixture", luaopen_fixture);
73 PreloadModule(L_, "deep_test", luaopen_deep_test); 73 PreloadModule(L_, "deep_userdata_example", luaopen_deep_userdata_example);
74 return 0; 74 return 0;
75 }; 75 };
76 76
@@ -181,7 +181,7 @@ LuaState::LuaState(WithBaseLibs const withBaseLibs_, WithFixture const withFixtu
181 if (withFixture_) { 181 if (withFixture_) {
182 // make require "fixture" call luaopen_fixture 182 // make require "fixture" call luaopen_fixture
183 local::PreloadModule(L, "fixture", luaopen_fixture); 183 local::PreloadModule(L, "fixture", luaopen_fixture);
184 local::PreloadModule(L, "deep_test", luaopen_deep_test); 184 local::PreloadModule(L, "deep_userdata_example", luaopen_deep_userdata_example);
185 } 185 }
186 STACK_CHECK(L, 0); 186 STACK_CHECK(L, 0);
187} 187}