Compiler/Preprocessor: Difference between revisions

removed constant math sentence
(Fix reference)
(removed constant math sentence)
Line 11:
The include command must be followed by whitespace and a string who contents is the actual file to read. Includes should allow the inclusion of other files to a recursive limit of five active header files plus the original source file.
 
The define command must be followed by whitespace and a new macro name. Redefinition is illegal. The same character convention for naming variables in the language is used for macro names. No whitespace is required in the arguments but is allowed between every token. Both no parenthesis or empty parenthesis are equivalent on the define or its usage. This yields no arguments. If there is a close parenthesis, the whitespace trailing it is optional. Otherwise, it is required. From that point to end of line is the definition, whitespace removed from both the start and end of it. Whitespace within the definition between tokens must be maintained. All constant math that can be performed before defining a new macro name must be. Any names within the definition are treated as macro names first before it is assumed they are variable in the language.
 
To make it easier to find, the usage will be within hashtags, and replaces its usage elsewhere in the files processed. The calling arguments replace the define's parameters as a simple string substitution.
7,806

edits