Impossible to exit infinite while loop #197
review changes for 18aca45673 (r26209938)
This commit is contained in:
@@ -1069,13 +1069,8 @@ static void checkForceExit(lua_State *lua, lua_Debug *luadebug)
|
||||
|
||||
tic_tick_data* tick = machine->data;
|
||||
|
||||
if(tick->hook)
|
||||
{
|
||||
tick->hook(tick->data);
|
||||
|
||||
if(tick->forceExit)
|
||||
luaL_error(lua, "script execution was interrupted");
|
||||
}
|
||||
if(tick->forceExit && tick->forceExit(tick->data))
|
||||
luaL_error(lua, "script execution was interrupted");
|
||||
}
|
||||
|
||||
static void initAPI(tic_machine* machine)
|
||||
|
||||
Reference in New Issue
Block a user