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

Function lcheck_param_table

src/nhlua.c:220–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220RESTORE_WARNING_UNREACHABLE_CODE
221
222/* Check that parameters are nothing but single table,
223 or if no parameters given, put empty table there */
224void
225lcheck_param_table(lua_State *L)
226{
227 int argc = lua_gettop(L);
228
229 if (argc < 1)
230 lua_createtable(L, 0, 0);
231
232 /* discard any extra arguments passed in */
233 lua_settop(L, 1);
234
235 luaL_checktype(L, 1, LUA_TTABLE);
236}
237
238DISABLE_WARNING_UNREACHABLE_CODE
239

Callers 15

nhl_debug_flagsFunction · 0.85
l_selection_gradientFunction · 0.85
lspo_monsterFunction · 0.85
lspo_objectFunction · 0.85
lspo_level_initFunction · 0.85
lspo_engravingFunction · 0.85
lspo_mineralizeFunction · 0.85
lspo_roomFunction · 0.85
l_create_stairwayFunction · 0.85
lspo_graveFunction · 0.85
lspo_altarFunction · 0.85
lspo_trapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected