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

Function l_selection_check

src/nhlsel.c:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55#endif
56
57struct selectionvar *
58l_selection_check(lua_State *L, int index)
59{
60 struct selectionvar *sel;
61
62 luaL_checktype(L, index, LUA_TUSERDATA);
63 sel = (struct selectionvar *) luaL_checkudata(L, index, "selection");
64 if (!sel)
65 nhl_error(L, "Selection error");
66 return sel;
67}
68
69staticfn int
70l_selection_gc(lua_State *L)

Callers 15

l_selection_gcFunction · 0.85
l_selection_cloneFunction · 0.85
l_selection_setpointFunction · 0.85
l_selection_numpointsFunction · 0.85
l_selection_getpointFunction · 0.85
l_selection_notFunction · 0.85
l_selection_andFunction · 0.85
l_selection_orFunction · 0.85
l_selection_xorFunction · 0.85
l_selection_subFunction · 0.85
l_selection_rndcoordFunction · 0.85

Calls 1

nhl_errorFunction · 0.85

Tested by

no test coverage detected