From 22a53ba309bcb2aea8a9434b86fd7bd83c2b9771 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 19 Dec 2016 18:08:29 +0100 Subject: [PATCH] LuaWrapper: Fix comments since `ValueInRegistry` now takes an optional index (cherry picked from commit 28abe7558fd5c0d853a7544f49fb780aafbc49f3) --- ext/luawrapper/include/LuaContext.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 273effd78..2d30d1d46 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); -- 2.40.0