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

Function get_table_option

src/nhlua.c:1121–1133  ·  view source on GitHub ↗

opts[] is a null-terminated list */

Source from the content-addressed store, hash-verified

1119
1120/* opts[] is a null-terminated list */
1121int
1122get_table_option(lua_State *L,
1123 const char *name,
1124 const char *defval,
1125 const char *const opts[])
1126{
1127 int ret;
1128
1129 lua_getfield(L, -1, name);
1130 ret = luaL_checkoption(L, -1, defval, opts);
1131 lua_pop(L, 1);
1132 return ret;
1133}
1134
1135#ifdef DUMPLOG
1136/* local fname = dump_fmtstr("/tmp/nethack.%n.%d.log"); */

Callers 15

com_pager_coreFunction · 0.85
get_dgn_alignFunction · 0.85
init_dungeon_branchesFunction · 0.85
l_selection_gradientFunction · 0.85
get_table_alignFunction · 0.85
get_table_bucFunction · 0.85
lspo_level_initFunction · 0.85
lspo_engravingFunction · 0.85
lspo_roomFunction · 0.85
l_create_stairwayFunction · 0.85
lspo_altarFunction · 0.85
lspo_corridorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected