hook 287 lib/lua/ldblib.c lua_Hook hook = lua_gethook(L1); hook 288 lib/lua/ldblib.c if (hook != NULL && hook != hookf) /* external hook? */ hook 61 lib/lua/ldebug.c L->hook = func; hook 70 lib/lua/ldebug.c return L->hook; hook 182 lib/lua/ldo.c lua_Hook hook = L->hook; hook 183 lib/lua/ldo.c if (hook && L->allowhook) { hook 198 lib/lua/ldo.c (*hook)(L, &ar); hook 89 lib/lua/lstate.c L->hook = NULL; hook 127 lib/lua/lstate.c L1->hook = L->hook; hook 120 lib/lua/lstate.h lua_Hook hook; hook 2768 modules/luascript.c int hook = lua_tonumber( L, lua_upvalueindex(1) ); hook 2769 modules/luascript.c script_shoot_hook_set(hook,luaL_checknumber(L, 1)); hook 2779 modules/luascript.c int hook = lua_tonumber( L, lua_upvalueindex(1) ); hook 2780 modules/luascript.c lua_pushboolean(L,script_shoot_hook_ready(hook)); hook 2790 modules/luascript.c int hook = lua_tonumber( L, lua_upvalueindex(1) ); hook 2791 modules/luascript.c script_shoot_hook_continue(hook); hook 2802 modules/luascript.c int hook = lua_tonumber( L, lua_upvalueindex(1) ); hook 2803 modules/luascript.c lua_pushnumber(L,script_shoot_hook_count(hook)); hook 3038 modules/luascript.c void register_shoot_hook_fn(lua_State* L, int hook, void *hook_fn, const char *name) hook 3040 modules/luascript.c lua_pushnumber( L, hook ); hook 33 modules/script_api.h void (*shoot_hook)(int hook); // run a hook in the shooting process, called from hooked task hook 28 modules/script_shoot_hook.c void script_shoot_hook_set(int hook,int timeout) { hook 29 modules/script_shoot_hook.c hooks[hook].timeout = timeout; hook 35 modules/script_shoot_hook.c void script_shoot_hook_run(int hook) hook 37 modules/script_shoot_hook.c int timeleft = hooks[hook].timeout; hook 38 modules/script_shoot_hook.c hooks[hook].count++; hook 43 modules/script_shoot_hook.c if(hook == SCRIPT_SHOOT_HOOK_RAW) { hook 46 modules/script_shoot_hook.c hooks[hook].active = 1; hook 47 modules/script_shoot_hook.c while(timeleft > 0 && hooks[hook].active) { hook 51 modules/script_shoot_hook.c if(hook == SCRIPT_SHOOT_HOOK_RAW) { hook 54 modules/script_shoot_hook.c hooks[hook].active = 0; hook 60 modules/script_shoot_hook.c int script_shoot_hook_ready(int hook) hook 62 modules/script_shoot_hook.c return hooks[hook].active; hook 66 modules/script_shoot_hook.c void script_shoot_hook_continue(int hook) hook 68 modules/script_shoot_hook.c hooks[hook].active = 0; hook 72 modules/script_shoot_hook.c int script_shoot_hook_count(int hook) hook 74 modules/script_shoot_hook.c return hooks[hook].count; hook 12 modules/script_shoot_hook.h void script_shoot_hook_set(int hook,int timeout); hook 14 modules/script_shoot_hook.h void script_shoot_hook_run(int hook); hook 16 modules/script_shoot_hook.h int script_shoot_hook_ready(int hook); hook 18 modules/script_shoot_hook.h void script_shoot_hook_continue(int hook); hook 20 modules/script_shoot_hook.h int script_shoot_hook_count(int hook); hook 49 modules/ubasic.c static void ubasic_script_shoot_hook_run(__attribute__ ((unused))int hook) { return; }