MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhl_pushhooked_open_table

Function nhl_pushhooked_open_table

src/nhlua.c:2732–2742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2730#endif
2731
2732void
2733nhl_pushhooked_open_table(lua_State *L)
2734{
2735 int hot = lua_getfield(L, LUA_REGISTRYINDEX, HOOKTBLNAME);
2736
2737 if (hot == LUA_TNONE) {
2738 lua_newtable(L);
2739 lua_pushvalue(L, -1);
2740 lua_setfield(L, LUA_REGISTRYINDEX, HOOKTBLNAME);
2741 }
2742}
2743
2744#ifdef notyet
2745staticfn int

Callers 1

hooked_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected