Re: lua_getinfo
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_getinfo
- From: Roberto Ierusalimschy <rieru@...>
- Date: Mon, 1 Oct 2001 10:22:32 -0500 (CDT)
On 2001年9月28日, 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"?
A bug?
> Shouldn't by definition the ar I get in a call hook be a function?
Yes.
> 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)?
-- Roberto