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.1.0-alpha1~330^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28abe7558fd5c0d853a7544f49fb780aafbc49f3;p=pdns LuaWrapper: Fix comments since `ValueInRegistry` now takes an optional index --- diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index b31e9cd39..7df6670e1 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);