Zero Length Arrays; Variable Argument Macros - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

float f = 0x1p-126f;
causes f to be initialized with the value
Hexadecimal floating constants are not supported in C++ mode.

Zero Length Arrays

Arrays may be declared with zero length. This is an anachronism sup-
ported to provide compatibility with GCC. Use variable length array
members instead.

Variable Argument Macros

The final parameter in a macro declaration may be followed by ... to indi-
cate the parameter stands for a variable number of arguments.
For example,
#define trace(msg, args...)
can be used with differing numbers of arguments,
trace("got here\n");
trace("i = %d\n", i);
trace("x = %f, y = %f\n", x, y);
The
operator has a special meaning when used in a macro definition
##
before the parameter that expands the variable number of arguments: if
the parameter expands to nothing then it removes the preceding comma.
The variable argument macro syntax comes from GCC. It is not
compatible with C99 variable argument macros and is not sup-
ported in C++ mode.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
.
0x800000
fprintf (stderr, msg, ## args);
Compiler
1-143

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents