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

Function emu_registerafter

src/lua-engine.cpp:705–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static int emu_registerafter(lua_State *L) {
706 if (!lua_isnil(L,1))
707 luaL_checktype(L, 1, LUA_TFUNCTION);
708 lua_settop(L,1);
709 lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_AFTEREMULATION]);
710 lua_insert(L,1);
711 lua_setfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_AFTEREMULATION]);
712 //StopScriptIfFinished(luaStateToUIDMap[L]);
713 return 1;
714}
715
716static int emu_registerexit(lua_State *L) {
717 if (!lua_isnil(L,1))

Callers

nothing calls this directly

Calls 5

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_getfieldFunction · 0.85
lua_insertFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected