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

Function nhl_an

src/nhlua.c:910–921  ·  view source on GitHub ↗

an("foo") */

Source from the content-addressed store, hash-verified

908
909/* an("foo") */
910staticfn int
911nhl_an(lua_State *L)
912{
913 int argc = lua_gettop(L);
914
915 if (argc == 1)
916 lua_pushstring(L, an(luaL_checkstring(L, 1)));
917 else
918 nhl_error(L, "Wrong args");
919
920 return 1;
921}
922
923/* rn2(10) */
924staticfn int

Callers

nothing calls this directly

Calls 2

anFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected