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

Function nhl_pline

src/nhlua.c:633–646  ·  view source on GitHub ↗

pline("It hits!") */ pline("It hits!", true) */

Source from the content-addressed store, hash-verified

631/* pline("It hits!") */
632/* pline("It hits!", true) */
633staticfn int
634nhl_pline(lua_State *L)
635{
636 int argc = lua_gettop(L);
637
638 if (argc == 1 || argc == 2) {
639 pline("%s", luaL_checkstring(L, 1));
640 if (lua_toboolean(L, 2))
641 display_nhwindow(WIN_MESSAGE, TRUE); /* --more-- */
642 } else
643 nhl_error(L, "Wrong args");
644
645 return 0;
646}
647
648/* verbalize("Fool!") */
649staticfn int

Callers

nothing calls this directly

Calls 2

nhl_errorFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected