Instructions

168Compiler
© 2013 Conrad Electronic
If there is an optional #else instruction then the source text will be processed after #else if the sym-
bol has not been defined.
Insertion of Text
#include path\file name
By this instruction a text file can be inserted into the source code.
Because of some restrictions in the Preprocessor a path within a #include instruction must not
contain any blank characters!
4.1.1.1 Predefined Symbols
In order to ease the work with different versions of the C-Control Pro series there are a number of
definitions which are set depending on target system and Compiler project options. These constants
can be called up by #ifdef, #ifndef or #if.
Symbol
Meaning
MEGA32
Configuration for Mega 32
MEGA128
Configuration for Mega 128
MEGA128CAN
Configuration for Mega 128 CAN Bus
AVR32
Configuration for AVR 32
MEGA128_ARCH
Mega 128 or Mega 128 CAN
CANBUS_SUPP
CAN Bus is supported
DEBUG
Debug Data will be created
MAPFILE
A Memory Layout will be computed
The following constants contain a string. It is sensible to use them in conjunction with text outputs.
Symbol
Meaning
__DATE__
Current Date
__TIME__
Time of Compiling
__LINE__
Current Line in Sourcecode
__FILE__
Name of Current Source File
__FUNCTION__
Current Function Name
Example
Line number, file name and function name will be issued. Since file names may become quite long it
is recommended to dimension character arrays somewhat generous.
char txt[60];