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

Function nhl_ing_suffix

src/nhlua.c:896–907  ·  view source on GitHub ↗

ing_suffix("foo") */

Source from the content-addressed store, hash-verified

894
895/* ing_suffix("foo") */
896staticfn int
897nhl_ing_suffix(lua_State *L)
898{
899 int argc = lua_gettop(L);
900
901 if (argc == 1)
902 lua_pushstring(L, ing_suffix(luaL_checkstring(L, 1)));
903 else
904 nhl_error(L, "Wrong args");
905
906 return 1;
907}
908
909/* an("foo") */
910staticfn int

Callers

nothing calls this directly

Calls 2

ing_suffixFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected