aboutsummaryrefslogtreecommitdiff
path: root/src/lane.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:37:17 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:37:17 +0200
commit958ed4f1e29418e90f3dd3de6779e30e05f70448 (patch)
tree01f42e0fa04b3fd806accfdc6d912fc7f99cd12f /src/lane.cpp
parenteba98e4e1adcf3ce11e5934e2dce54f29aef1e0a (diff)
downloadlanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.tar.gz
lanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.tar.bz2
lanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.zip
More strong typing for UniqueKey::getSubTable() arguments
Diffstat (limited to 'src/lane.cpp')
-rw-r--r--src/lane.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lane.cpp b/src/lane.cpp
index d4d409f..29ad8bb 100644
--- a/src/lane.cpp
+++ b/src/lane.cpp
@@ -68,7 +68,7 @@ static LUAG_FUNC(set_finalizer)
68 luaL_argcheck(L_, lua_gettop(L_) == 1, 1, "too many arguments"); 68 luaL_argcheck(L_, lua_gettop(L_) == 1, 1, "too many arguments");
69 STACK_GROW(L_, 3); 69 STACK_GROW(L_, 3);
70 // Get the current finalizer table (if any), create one if it doesn't exist 70 // Get the current finalizer table (if any), create one if it doesn't exist
71 std::ignore = kFinalizerRegKey.getSubTable(L_, 1, 0); // L_: finalizer {finalisers} 71 std::ignore = kFinalizerRegKey.getSubTable(L_, NArr{ 1 }, NRec{ 0 }); // L_: finalizer {finalisers}
72 // must cast to int, not lua_Integer, because LuaJIT signature of lua_rawseti is not the same as PUC-Lua. 72 // must cast to int, not lua_Integer, because LuaJIT signature of lua_rawseti is not the same as PUC-Lua.
73 int const _idx{ static_cast<int>(lua_rawlen(L_, kIdxTop) + 1) }; 73 int const _idx{ static_cast<int>(lua_rawlen(L_, kIdxTop) + 1) };
74 lua_pushvalue(L_, 1); // L_: finalizer {finalisers} finalizer 74 lua_pushvalue(L_, 1); // L_: finalizer {finalisers} finalizer