From 7bddb06461d8f80030b3b86175ec737dbb16ac3b Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 4 Jul 2025 14:54:36 +0200 Subject: Added Lua 5.5 support * some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet --- unit_tests/embedded_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unit_tests/embedded_tests.cpp') 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") static constexpr auto launch_lane = +[](lua_CFunction on_state_create_, int id_, int n_) { char script[500]; - lua_State* L = lua_newstate(local::allocf, nullptr); + lua_State* L = luaW_newstate(local::allocf, nullptr, luaL_makeseed(nullptr)); // _G.ID = id_ luaL_openlibs(L); luaL_dostring(L, "lanes = require 'lanes'"); -- cgit v1.2.3-55-g6feb