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

Function emu_exec_count

src/lua-engine.cpp:5969–5978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5967}
5968
5969static int emu_exec_count(lua_State *L) {
5970 int count = (int)luaL_checkinteger(L,1);
5971 lua_pushvalue(L, 2);
5972 lua_sethook(L, emu_exec_count_hook, LUA_MASKCOUNT, count);
5973 int ret = lua_pcall(L, 0, 0, 0);
5974 lua_sethook(L, NULL, 0, 0);
5975 lua_settop(L,0);
5976 lua_pushinteger(L, ret);
5977 return 1;
5978}
5979
5980#ifdef __WIN_DRIVER__
5981static HANDLE readyEvent, goEvent;

Callers

nothing calls this directly

Calls 6

luaL_checkintegerFunction · 0.85
lua_pushvalueFunction · 0.85
lua_sethookFunction · 0.85
lua_pcallFunction · 0.85
lua_settopFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected