With the
do {...} while (0)
tion and put the semicolon after it.
For example,
/* SKIP_SPACES, enclosed macro, ends without ';' */
if (*p != 0)
SKIP_SPACES (p, lim);
else ...
This expands to
if (*p != 0)
do {
...
} while (0);
else ...
Without the
do {...} while (0)
if (*p != 0)
{
,,,
};
else
Preprocessing of .IDL Files
Every VisualDSP++ Interface Definition Language (VIDL) specification is
analyzed by the C++ language preprocessor prior to syntax analysis. For
more information, refer to the VisualDSP++ Component Software Engi-
neering User's Guide.
The
#include
VIDL source text from a secondary input file that is named in the direc-
tive. Two available forms of
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
construct, you can treat the macro as a func-
construct, the expansion would be:
/* Probably not intended syntax */
directive is used to control the inclusion of additional
#include
are shown in
Figure
Compiler
1-2.
1-151
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers