aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/embedded_tests.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-07-04 14:54:36 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2025-07-04 14:54:36 +0200
commit7bddb06461d8f80030b3b86175ec737dbb16ac3b (patch)
tree031238469090658f7f20535137edb2620bc77182 /unit_tests/embedded_tests.cpp
parent042055968ab0c48faec607889814e38c50c09efa (diff)
downloadlanes-7bddb06461d8f80030b3b86175ec737dbb16ac3b.tar.gz
lanes-7bddb06461d8f80030b3b86175ec737dbb16ac3b.tar.bz2
lanes-7bddb06461d8f80030b3b86175ec737dbb16ac3b.zip
Added Lua 5.5 support
* some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet
Diffstat (limited to 'unit_tests/embedded_tests.cpp')
-rw-r--r--unit_tests/embedded_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_tests/embedded_tests.cpp b/unit_tests/embedded_tests.cpp
index 58d6a8a..388548d 100644
--- a/unit_tests/embedded_tests.cpp
+++ b/unit_tests/embedded_tests.cpp
@@ -220,7 +220,7 @@ TEST_CASE("lanes.embedding.with_custom_allocator")
220 220
221 static constexpr auto launch_lane = +[](lua_CFunction on_state_create_, int id_, int n_) { 221 static constexpr auto launch_lane = +[](lua_CFunction on_state_create_, int id_, int n_) {
222 char script[500]; 222 char script[500];
223 lua_State* L = lua_newstate(local::allocf, nullptr); 223 lua_State* L = luaW_newstate(local::allocf, nullptr, luaL_makeseed(nullptr));
224 // _G.ID = id_ 224 // _G.ID = id_
225 luaL_openlibs(L); 225 luaL_openlibs(L);
226 luaL_dostring(L, "lanes = require 'lanes'"); 226 luaL_dostring(L, "lanes = require 'lanes'");