aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 12:17:48 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-26 12:17:48 +0200
commit47f48f75bf02a92e2d4edd7da67f808355e92a6e (patch)
treeee102ff857a34ee1fbf5167328d86a4a06f58c79
parent1029bf5bcc7c2bb506ddc02a78a12c6993680413 (diff)
downloadlanes-47f48f75bf02a92e2d4edd7da67f808355e92a6e.tar.gz
lanes-47f48f75bf02a92e2d4edd7da67f808355e92a6e.tar.bz2
lanes-47f48f75bf02a92e2d4edd7da67f808355e92a6e.zip
Boyscouting
Diffstat (limited to '')
-rw-r--r--src/lanes.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index 39723ca..a5e4236 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -828,13 +828,13 @@ LANES_API int luaopen_lanes_core(lua_State* L_)
828 STACK_CHECK_START_REL(L_, 0); 828 STACK_CHECK_START_REL(L_, 0);
829 829
830 // Prevent PUC-Lua/LuaJIT mismatch. Hopefully this works for MoonJIT too 830 // Prevent PUC-Lua/LuaJIT mismatch. Hopefully this works for MoonJIT too
831#if LUAJIT_FLAVOR() == 0 831 if constexpr (LUAJIT_FLAVOR() == 0) {
832 if (luaG_getmodule(L_, LUA_JITLIBNAME) != LuaType::NIL) 832 if (luaG_getmodule(L_, LUA_JITLIBNAME) != LuaType::NIL)
833 raise_luaL_error(L_, "Lanes is built for PUC-Lua, don't run from LuaJIT"); 833 raise_luaL_error(L_, "Lanes is built for PUC-Lua, don't run from LuaJIT");
834#else 834 } else {
835 if (luaG_getmodule(L_, LUA_JITLIBNAME) == LuaType::NIL) 835 if (luaG_getmodule(L_, LUA_JITLIBNAME) == LuaType::NIL)
836 raise_luaL_error(L_, "Lanes is built for LuaJIT, don't run from PUC-Lua"); 836 raise_luaL_error(L_, "Lanes is built for LuaJIT, don't run from PUC-Lua");
837#endif 837 }
838 lua_pop(L_, 1); // L_: 838 lua_pop(L_, 1); // L_:
839 STACK_CHECK(L_, 0); 839 STACK_CHECK(L_, 0);
840 840