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

Function get_table_mapchr

src/nhlua.c:238–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238DISABLE_WARNING_UNREACHABLE_CODE
239
240schar
241get_table_mapchr(lua_State *L, const char *name)
242{
243 char *ter;
244 xint8 typ;
245
246 ter = get_table_str(L, name);
247 typ = check_mapchr(ter);
248 if (typ == INVALID_TYPE)
249 nhl_error(L, "Erroneous map char");
250 if (ter)
251 free(ter);
252 return typ;
253}
254
255schar
256get_table_mapchr_opt(lua_State *L, const char *name, schar defval)

Callers 2

lspo_terrainFunction · 0.85
lspo_replace_terrainFunction · 0.85

Calls 3

get_table_strFunction · 0.85
check_mapchrFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected