| 692 | } |
| 693 | |
| 694 | static 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 | |
| 705 | static int emu_registerafter(lua_State *L) { |
| 706 | if (!lua_isnil(L,1)) |
nothing calls this directly
no test coverage detected