[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Overriding return values
- From: Andrew Starks <andrew.starks@...>
- Date: Sat, 20 Dec 2014 19:02:51 -0600
On Sat, Dec 20, 2014 at 2:31 PM, Soni L. <firstname.lastname@example.org> 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?