lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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?
	return f()

--lhf