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

Function l_selection_to

src/nhlsel.c:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79#if 0
80staticfn struct selectionvar *
81l_selection_to(lua_State *L, int index)
82{
83 struct selectionvar *sel
84 = (struct selectionvar *) lua_touserdata(L, index);
85
86 if (!sel)
87 nhl_error(L, "Selection error");
88 return sel;
89}
90#endif
91
92/* push a new selection into lua stack, return the selectionvar */

Callers

nothing calls this directly

Calls 1

nhl_errorFunction · 0.85

Tested by

no test coverage detected