From: Remi Gacogne Date: Mon, 19 Dec 2016 17:08:29 +0000 (+0100) Subject: LuaWrapper: Fix comments since `ValueInRegistry` now takes an optional index X-Git-Tag: rec-4.0.5-rc1~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22a53ba309bcb2aea8a9434b86fd7bd83c2b9771;p=thirdparty%2Fpdns.git LuaWrapper: Fix comments since `ValueInRegistry` now takes an optional index (cherry picked from commit 28abe7558fd5c0d853a7544f49fb780aafbc49f3) --- diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 273effd787..2d30d1d468 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -1639,9 +1639,9 @@ private: /**************************************************/ /* UTILITIES */ /**************************************************/ - // structure that will ensure that a certain is stored somewhere in the registry + // structure that will ensure that a certain value is stored somewhere in the registry struct ValueInRegistry { - // this constructor will clone and hold the value at the top of the stack in the registry + // this constructor will clone and hold the value at the specified index (or by default at the top of the stack) in the registry ValueInRegistry(lua_State* lua, int index=-1) : lua{lua} { lua_pushlightuserdata(lua, this);