Compiler/Preprocessor: Difference between revisions
Content deleted Content added
removed constant math sentence |
Remove empty parentheses |
||
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.
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.
Line 26:
#include "Header.h"
#define width 5
#define height
area = #area(height, width
</pre>
Line 47:
area = 6 * 5;
</pre>
;Related Tasks
* [[Compiler/lexical_analyzer|Lexical Analyzer task]]
|