Texas Instruments MSP50C614 Stereo System User Manual


 
C– – Compiler
5-43
Code Development Tools
5.9.4.3 #include
As in regular C, this directive allows for the insertion of a file into the current
file. If the file name that follows is enclosed in < >, the system searches the
include directories for the file, otherwise, if it is enclosed in “ ”, the current
directory is searched.
Example:
#include “file.h”
#include <stdio.h>
The include directories are defined on the cmm_input structure passed to the
compiler. There is no limit to the nesting of include files.
5.9.4.4 #asm
All text following this directive is inserted
as is
in the output file, and is
considered as assembly language (hence not compiled). The insertion
continues until a #endasm directive is found. Note that both #asm and
#endasm must be at the beginning of a line, and that all text following them
on the same line is ignored.
5.9.4.5 #endasm
Signals the end of assembly language insertion. Must be paired with a #asm
directive.
5.9.4.6 #ifdef, (#ifndef)
Starts conditional assembly if token following it has been defined (not been
defined) by a #define directive. These directives are terminated by a #endif
directive, and can be coupled with a #else directive, as in regular C. Note that
the test can only check if the named token is currently defined or undefined.
5.9.4.7 #if
Starts conditional assembly if expression following it evaluates to a non zero
value. This directive is terminated by a #endif directive, and can be coupled
with a #else directive, as in regular C.
5.9.4.8 #else
See
#
if directive.
5.9.4.9 #endif
Must be present to terminate a #ifdef or #ifndef directive