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

Function nhl_parse_config

src/nhlua.c:663–674  ·  view source on GitHub ↗

parse_config("OPTIONS=!color") */

Source from the content-addressed store, hash-verified

661
662/* parse_config("OPTIONS=!color") */
663staticfn int
664nhl_parse_config(lua_State *L)
665{
666 int argc = lua_gettop(L);
667
668 if (argc == 1)
669 parse_conf_str(luaL_checkstring(L, 1), parse_config_line);
670 else
671 nhl_error(L, "Wrong args");
672
673 return 0;
674}
675
676/* local windowtype = get_config("windowtype"); */
677staticfn int

Callers

nothing calls this directly

Calls 2

parse_conf_strFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected