diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-07-04 14:54:36 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-07-04 14:54:36 +0200 |
| commit | 7bddb06461d8f80030b3b86175ec737dbb16ac3b (patch) | |
| tree | 031238469090658f7f20535137edb2620bc77182 /unit_tests/embedded_tests.cpp | |
| parent | 042055968ab0c48faec607889814e38c50c09efa (diff) | |
| download | lanes-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.cpp | 2 |
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'"); |
