lua-users home
lua-l archive

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

On Sat, Dec 20, 2014 at 2:31 PM, Soni L. <> wrote:
> So let's say I'm hacking the internals and I wanna force a Lua function to
> stop and just return whatever I want instead of continuing and/or returning
> what it wants to return. How can I do this?
> --
> Disclaimer: these emails are public and can be accessed from <TODO: get a
> non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.

I think some mixture of debug.sethook and xpcall might work well for you?