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/universe.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 'src/universe.cpp')
| -rw-r--r-- | src/universe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index 044c841..4db036b 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
| @@ -447,7 +447,7 @@ int Universe::UniverseGC(lua_State* const L_) | |||
| 447 | if (!lua_isnil(L_, -1)) { | 447 | if (!lua_isnil(L_, -1)) { |
| 448 | lua_pushboolean(L_, _allLanesTerminated); // L_: U finalizer bool | 448 | lua_pushboolean(L_, _allLanesTerminated); // L_: U finalizer bool |
| 449 | // no protection. Lua rules for errors in finalizers apply normally: | 449 | // no protection. Lua rules for errors in finalizers apply normally: |
| 450 | // Lua 5.4: error is propagated in the warn system | 450 | // Lua 5.4+: error is propagated in the warn system |
| 451 | // older: error is swallowed | 451 | // older: error is swallowed |
| 452 | lua_call(L_, 1, 1); // L_: U msg? | 452 | lua_call(L_, 1, 1); // L_: U msg? |
| 453 | // phew, no error in finalizer, since we reached that point | 453 | // phew, no error in finalizer, since we reached that point |
