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 /src/allocator.hpp | |
| 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 'src/allocator.hpp')
| -rw-r--r-- | src/allocator.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.hpp b/src/allocator.hpp index ce65a4b..b578f12 100644 --- a/src/allocator.hpp +++ b/src/allocator.hpp | |||
| @@ -66,7 +66,7 @@ namespace lanes { | |||
| 66 | [[nodiscard]] | 66 | [[nodiscard]] |
| 67 | lua_State* newState() const | 67 | lua_State* newState() const |
| 68 | { | 68 | { |
| 69 | return lua_newstate(allocF, allocUD); | 69 | return luaW_newstate(allocF, allocUD, luaL_makeseed(nullptr)); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | [[nodiscard]] | 72 | [[nodiscard]] |
