Instructions
167 C-Control Pro IDE
© 2013 Conrad Electronic
Compiler4
4.1 General Features
This domain provides information on the Compiler’s properties and features which are independent of
the programming language used.
4.1.1 Preprocessor
The Gnu Generic Preprocessor used here provides some additional functions which are docu-
mented under http://nothingisreal.com/gpp/gpp.html. Only the functions described here however have
also together with the C-Control Pro Compiler been thoroughly tested. Using the here undocumented
functions will thus be at your own risk!
The C-Control development system contains a complete C-Preprozessor. The Preprocessor pro-
cesses the source text prior to Compiler start. The following commands are supported:
Definitions
By the command "#define" text constants are defined.
#define symbol text constant
Since the Preprocessor runs ahead of the Compiler at each appearance of symbol in the source text
the symbol will be replaced by text constant.
Example
#define PI 3.141
If a project consists of several sources then #define is a constant for all source files existing fol-
lowing the file, in which the constant has been defined. It is thus possible to change the order of
source files in a project.
Conditional Compiling
#ifdef symbol
...
#else // optional
...
#endif
It is possible to monitor which parts of the source texts are really being compiled. After a #ifdef sym-
bol instruction the following text is only compiled when symbol has also been defined by #define
symbol.