Difference between revisions of "Definition"

From NetHackWiki
Jump to navigation Jump to search
m (Make a list, and add links)
Line 1: Line 1:
 
In the [[source code]], a '''definition''' is a [[Wikipedia:C preprocessor|C preprocessor]] directive which tells the compiler whether or not to compile in a certain set of features.
 
In the [[source code]], a '''definition''' is a [[Wikipedia:C preprocessor|C preprocessor]] directive which tells the compiler whether or not to compile in a certain set of features.
  
In [[config.h]], the following definitions are enabled by default, but are apparently considered optional: SINKS, WALLIFIED_MAZE, REINCARNATION, KOPS, SEDUCE, STEED, TOURIST, ELBERETH, REDO, and CLIPPING.
+
In [[config.h]], the following definitions are enabled by default, but are apparently considered optional:
 +
 
 +
* [[Sink|SINKS]]
 +
* WALLIFIED_MAZE
 +
* REINCARNATION
 +
* [[Kops|KOPS]]
 +
* [[Foocubi|SEDUCE]]
 +
* [[Riding|STEED]]
 +
* [[Tourist|TOURIST]]
 +
* [[Elbereth|ELBERETH]]
 +
* REDO
 +
* CLIPPING.
  
 
{{stub}}
 
{{stub}}

Revision as of 23:08, 14 December 2019

In the source code, a definition is a C preprocessor directive which tells the compiler whether or not to compile in a certain set of features.

In config.h, the following definitions are enabled by default, but are apparently considered optional:

This page is a stub. Should you wish to do so, you can contribute by expanding this page.

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.