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

Function nhl_get_config

src/nhlua.c:677–689  ·  view source on GitHub ↗

local windowtype = get_config("windowtype"); */

Source from the content-addressed store, hash-verified

675
676/* local windowtype = get_config("windowtype"); */
677staticfn int
678nhl_get_config(lua_State *L)
679{
680 int argc = lua_gettop(L);
681
682 if (argc == 1) {
683 lua_pushstring(L, get_option_value(luaL_checkstring(L, 1), TRUE));
684 return 1;
685 } else
686 nhl_error(L, "Wrong args");
687
688 return 0;
689}
690
691/*
692 str = getlin("What do you want to call this dungeon level?");

Callers

nothing calls this directly

Calls 2

get_option_valueFunction · 0.85
nhl_errorFunction · 0.85

Tested by

no test coverage detected