| 11759 | |
| 11760 | |
| 11761 | static void gethooktable (lua_State *L) { |
| 11762 | lua_pushlightuserdata(L, (void *)&KEY_HOOK); |
| 11763 | lua_rawget(L, LUA_REGISTRYINDEX); |
| 11764 | if (!lua_istable(L, -1)) { |
| 11765 | lua_pop(L, 1); |
| 11766 | lua_createtable(L, 0, 1); |
| 11767 | lua_pushlightuserdata(L, (void *)&KEY_HOOK); |
| 11768 | lua_pushvalue(L, -2); |
| 11769 | lua_rawset(L, LUA_REGISTRYINDEX); |
| 11770 | } |
| 11771 | } |
| 11772 | |
| 11773 | |
| 11774 | static int db_sethook (lua_State *L) { |
no test coverage detected