[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua function arguments
- From: tomas@...
- Date: Mon, 18 May 1998 15:41:58 -0300
>Could you post some sample code of how to get the number and names of the
>parameters for a given function?
Lua debugger uses these functions. You can download the source code
(http://www.inf.puc-rio.br/~roberto/ldb.tar.gz) and take a look.
local_env is a function that reproduces the local environment of a
running function on the global, so the debugger command line can work.
ldb_where shows the names and current lines of execution of the stacked
functions (of course you cannot get the current line of a function that is not
executing). Maybe it helps...
P.S.: By the way, why lua_getlocal needs the current line number?