[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_getinfo
- From: Roberto Ierusalimschy <rieru@...>
- Date: Mon, 1 Oct 2001 10:22:32 -0500 (CDT)
On Fri, 28 Sep 2001, Curt Carpenter wrote:
> Why is it that in a call hook calling lua_getinfo(l, "lnuS", ar) will
> sometimes generate an error complaining that "value for `lua_getinfo' is
> not a function"?
> Shouldn't by definition the ar I get in a call hook be a function?
> Or to rephrase the problem, how can I get as much
> information in a call hook as possible in a generic way without running
> the risk of generating an error?
You should be able to call lua_getinfo without errors. What version are you
using (Lua 4.0 or 4.1)?