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

Function nhl_set_package_path

src/nhlua.c:2077–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2075
2076#ifdef notyet
2077staticfn int
2078nhl_set_package_path(lua_State *L, const char *path)
2079{
2080 if (LUA_TTABLE != lua_getglobal(L, "package")) {
2081 impossible("package not a table in nhl_set_package_path");
2082 return 1;
2083 };
2084 lua_pushstring(L, path);
2085 lua_setfield(L, -2, "path");
2086 lua_pop(L, 1);
2087 return 0;
2088}
2089#endif
2090
2091staticfn int

Callers 1

nhl_initFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected