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

Function get_table_int

src/nhlua.c:1013–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013RESTORE_WARNING_UNREACHABLE_CODE
1014
1015/* get mandatory integer value from table */
1016int
1017get_table_int(lua_State *L, const char *name)
1018{
1019 int ret;
1020
1021 lua_getfield(L, -1, name);
1022 ret = (int) luaL_checkinteger(L, -1);
1023 lua_pop(L, 1);
1024 return ret;
1025}
1026
1027/* get optional integer value from table */
1028int

Callers 8

nhl_testFunction · 0.85
init_dungeon_levelsFunction · 0.85
init_dungeon_branchesFunction · 0.85
init_dungeon_dungeonsFunction · 0.85
l_selection_gradientFunction · 0.85
lspo_corridorFunction · 0.85
nhl_abs_coordFunction · 0.85
lspo_wallifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected