MCPcopy Index your code
hub / github.com/NetHack/NetHack / get_table_str

Function get_table_str

src/nhlua.c:1041–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041char *
1042get_table_str(lua_State *L, const char *name)
1043{
1044 char *ret;
1045
1046 lua_getfield(L, -1, name);
1047 ret = dupstr(luaL_checkstring(L, -1));
1048 lua_pop(L, 1);
1049 return ret;
1050}
1051
1052/* get optional string value from table.
1053 return value must be freed by caller. */

Callers 7

get_table_mapchrFunction · 0.85
init_dungeon_levelsFunction · 0.85
init_dungeon_branchesFunction · 0.85
init_dungeon_dungeonsFunction · 0.85
lspo_engravingFunction · 0.85
lspo_replace_terrainFunction · 0.85
lspo_mapFunction · 0.85

Calls 1

dupstrFunction · 0.85

Tested by

no test coverage detected