MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / gethooktable

Function gethooktable

Source/Misc/lua/src/lua.c:11761–11771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

db_sethookFunction · 0.85
db_gethookFunction · 0.85

Calls 5

lua_pushlightuserdataFunction · 0.85
lua_rawgetFunction · 0.85
lua_createtableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_rawsetFunction · 0.85

Tested by

no test coverage detected