[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Interrupting the Lua VM from C (Lua 3.1)
- From: Cyril Zorin <cyril.zorin@...>
- Date: Sun, 21 May 2006 14:52:07 -0400
Hullo!
Say I have two functions, one Lua function called MyLuaFunc, and a C
function called my_c_func(). Now, suppose that MyLuaFunc calls
my_c_func() -- is there a way, from inside my_c_func() to make it so
the Lua VM returns from MyLuaFunc right after my_c_func() is done? In
other words
-- some code
my_c_func()
-- I want my_c_func() to tell the Lua VM to return from MyLuaFunc
right after my_c_func() returns
-- more code
Is there a way to do this?
Let me know if the description needs more clarification.
Thanks,
Cyril.