The X11 interface reads file NetHack.ad (after cd'ing to the playground directory, where 'make install' puts a copy) and feeds the contents to X Windows for use as default resources to override the compiled in defaults. When use of #define was introduced into NetHack.ad (back in September, 2016) this was severely hobbled and startup spit out a lot complaints to stderr about invalid resource values. This implements rudimentary macro expansion for '#define name value' within the data stream that's fed to X, getting back decent default values and eliminating the invalid value complaints.
78 KiB
78 KiB