Re: Extend debug.getlocal() to get varargs.

  • From: Mike Pall <mike-1209@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 19 Sep 2012 12:21:22 +0200

Scott Lembcke wrote:
> Lua 5.2 extended debug.getlocal() with the ability to get vararg
> parameters using negative indices.

I've just added this extension to LuaJIT git HEAD.

Ditto for the change in Lua 5.2 where debug.getlocal() accepts a
Lua function instead of a level and returns the parameter names.
On the C side this corresponds to lua_getlocal(L, NULL, n) with
the Lua function on top of the Lua stack.

--Mike

Other related posts: