lua-users home
lua-l archive

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

> If so, I think it is possible. You may try this:
> Install a LUA_HOOKCOUNT hook into the Lua VM, which would be called after
> the VM had executed LIMIT instructions.
> If the LIMIT is reached, you may throw an error and the control would
> return
> to your main program.

There are some caveats here. See corowatch [1] for a Lua example, and check its readme for the caveats