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

Function init_u_data

src/nhlua.c:2062–2074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060};
2061
2062staticfn void
2063init_u_data(lua_State *L)
2064{
2065 lua_newtable(L);
2066 luaL_setfuncs(L, nhl_u_functions, 0);
2067 lua_newtable(L);
2068 lua_pushcfunction(L, nhl_meta_u_index);
2069 lua_setfield(L, -2, "__index");
2070 lua_pushcfunction(L, nhl_meta_u_newindex);
2071 lua_setfield(L, -2, "__newindex");
2072 lua_setmetatable(L, -2);
2073 lua_setglobal(L, "u");
2074}
2075
2076#ifdef notyet
2077staticfn int

Callers 1

nhl_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected