diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lanes.cpp | 14 |
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 | ||
