lua-users home
lua-l archive

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



On 20/12/14 11:02 PM, Andrew Starks wrote:
On Sat, Dec 20, 2014 at 2:31 PM, Soni L. <fakedme@gmail.com> 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?

I don't want to (x)pcall() every call I make >.>

--
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.