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

Function emu_registerbefore

src/lua-engine.cpp:694–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694static int emu_registerbefore(lua_State *L) {
695 if (!lua_isnil(L,1))
696 luaL_checktype(L, 1, LUA_TFUNCTION);
697 lua_settop(L,1);
698 lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_BEFOREEMULATION]);
699 lua_insert(L,1);
700 lua_setfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_BEFOREEMULATION]);
701 //StopScriptIfFinished(luaStateToUIDMap[L]);
702 return 1;
703}
704
705static int emu_registerafter(lua_State *L) {
706 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