]> granicus.if.org Git - pdns/commit
LuaWrapper: Use the correct index when storing a function
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 16 Dec 2016 13:39:46 +0000 (14:39 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 16 Dec 2016 13:41:22 +0000 (14:41 +0100)
commit4ec1e17418d539cea7eb4fb5469e905684ca6457
tree1a600fce2f7ee825de241f62edec3635a8d7cb16
parent81d1f2713499581a1d7929f66f7032e069e1809a
LuaWrapper: Use the correct index when storing a function

The LuaWrapper used to assume that the function was at the
top of the stack, making it effectively impossible to have
a callback function parameter anywhere else than as the last
parameter.
ext/luawrapper/include/LuaContext.hpp