lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:

> Currently there is no "standard" way to prevent an invalid yield if
> the hook is called inside a metamethod or a "for" iterator function,
> (...)

Does putting "if (L->nCcalls > 0) return;" in the hook before the
yield prevent all invalid yields or is there more that needs
checking?