lua-users home
lua-l archive

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

>>> How would I do something like this?  From lua_pcall, I get a return
>>> value of 2 but is this defined somewhere?  Should I just check for
>>> that value or is there a preferred constant?
> This requires the function be on the stack and that you know the index,
> though.
If he's in a position to use pcall on it, it's already on stack and thus
using lua_isfunction() is entirely reasonable, no?