diff --git a/src/luamm.cc b/src/luamm.cc index 8973aac2..71eaab26 100644 --- a/src/luamm.cc +++ b/src/luamm.cc @@ -171,6 +171,14 @@ namespace lua { return nresults; } + // Overloaded for Lua 5.3+ as lua_gettable and others return an int + template + int safe_misc_trampoline(lua_State *l) + { + misc(l, 1); + return nresults; + } + int safe_next_trampoline(lua_State *l) { int r = lua_next(l, 1);