| 5967 | } |
| 5968 | |
| 5969 | static 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__ |
| 5981 | static HANDLE readyEvent, goEvent; |
nothing calls this directly
no test coverage detected