From: Peter van Dijk Date: Fri, 28 Aug 2020 13:38:11 +0000 (+0200) Subject: clarify stack contents in comments X-Git-Tag: auth-4.4.0-alpha1~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43eb24c5007d3d5161a22a17c20557945d228dcf;p=thirdparty%2Fpdns.git clarify stack contents in comments --- diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 988d25523f..5982757baf 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -1417,9 +1417,9 @@ private: } static int gettraceback(lua_State* L) { - lua_getglobal(L, "debug"); // stack: error, "debug" - lua_getfield(L, -1, "traceback"); // stack: error, "debug", debug.traceback - lua_remove(L, -2); // stack: error, debug.traceback + lua_getglobal(L, "debug"); // stack: error, debug library + lua_getfield(L, -1, "traceback"); // stack: error, debug library, debug.traceback function + lua_remove(L, -2); // stack: error, debug.traceback function lua_pushstring(L, ""); // stack: error, debug.traceback, "" lua_pushinteger(L, 2); // stack: error, debug.traceback, "", 2 lua_call(L, 2, 1); // stack: error, traceback