MCPcopy Create free account
hub / github.com/TASEmulators/fceux / emu_exec_time_proc

Function emu_exec_time_proc

src/lua-engine.cpp:5982–5993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5980#ifdef __WIN_DRIVER__
5981static HANDLE readyEvent, goEvent;
5982DWORD WINAPI emu_exec_time_proc(LPVOID lpParameter)
5983{
5984 SetEvent(readyEvent);
5985 WaitForSingleObject(goEvent,INFINITE);
5986 lua_State *L = (lua_State *)lpParameter;
5987 lua_pushvalue(L, 2);
5988 int ret = lua_pcall(L, 0, 0, 0);
5989 lua_settop(L,0);
5990 lua_pushinteger(L, ret);
5991 SetEvent(readyEvent);
5992 return 0;
5993}
5994
5995static void emu_exec_time_hook(lua_State *L, lua_Debug *dbg) {
5996 luaL_error(L, "exec_time timeout");

Callers

nothing calls this directly

Calls 4

lua_pushvalueFunction · 0.85
lua_pcallFunction · 0.85
lua_settopFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected