]> 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)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 13:06:20 +0000 (14:06 +0100)
commit1e7a64574a4cd8ceed619ecc878f3976a0780067
treea5b9dcaac7a99bbcd19fa1d34ce4df9a655c0bd1
parenta08b422d4b9ec0ca250478b44a905042f40cdd2a
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.

(cherry picked from commit 4ec1e17418d539cea7eb4fb5469e905684ca6457)
ext/luawrapper/include/LuaContext.hpp