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

Function get_table_boolean_opt

src/nhlua.c:1106–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106int
1107get_table_boolean_opt(lua_State *L, const char *name, int defval)
1108{
1109 int ret = defval;
1110
1111 lua_getfield(L, -1, name);
1112 if (lua_type(L, -1) != LUA_TNIL) {
1113 lua_pop(L, 1);
1114 return get_table_boolean(L, name);
1115 }
1116 lua_pop(L, 1);
1117 return ret;
1118}
1119
1120/* opts[] is a null-terminated list */
1121int

Callers 12

nhl_debug_flagsFunction · 0.85
lspo_monsterFunction · 0.85
lspo_objectFunction · 0.85
lspo_level_initFunction · 0.85
lspo_engravingFunction · 0.85
lspo_roomFunction · 0.85
lspo_trapFunction · 0.85
l_get_lregionFunction · 0.85
lspo_regionFunction · 0.85
lspo_mazewalkFunction · 0.85
lspo_mapFunction · 0.85

Calls 1

get_table_booleanFunction · 0.85

Tested by

no test coverage detected