[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Debug API
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 7 Jun 2005 10:38:48 -0300
> One problem I'm seeing: parameters aren't available in LUA_HOOKCALL.
Sorry, this will probably be fixed in 5.1.
> I can hack around this by enabling LUA_MASKCOUNT at 1 when
> LUA_HOOKCALL comes in, grabbing the info on the next hook and
> disabling the extra hook, but that seems evil.
Right now, that's the only way to do it.
> Another: there doesn't seem to be a way to access return values. They're
> on the stack, and the core code appears to know how many values on the stack
> are return values, but there's no way to find this out from a hook.
This is really hard. How would this work for a function that ends like this?