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

Function nhl_makeplural

src/nhlua.c:854–865  ·  view source on GitHub ↗

makeplural("zorkmid") */

Source from the content-addressed store, hash-verified

852
853/* makeplural("zorkmid") */
854staticfn int
855nhl_makeplural(lua_State *L)
856{
857 int argc = lua_gettop(L);
858
859 if (argc == 1)
860 lua_pushstring(L, makeplural(luaL_checkstring(L, 1)));
861 else
862 nhl_error(L, "Wrong args");
863
864 return 1;
865}
866
867/* makesingular("zorkmids") */
868staticfn int

Callers

nothing calls this directly

Calls 2

makepluralFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected