C/C++ Compiler Language Extensions
Line Breaks in String Literals
String literals may span many lines. The line breaks do not need to be
escaped in any way. They are replaced by the character
string. This extension is not supported in C++ mode. The extension is not
compatible with many dialects of C including ANSI/ISO C89 and C99.
However, it is useful in
non-portable.
Arithmetic on Pointers to Void and Pointers to Functions
Addition and subtraction is allowed on pointers to
functions. The result is as if the operands had been cast to pointers to
. The
char
sizeof
Cast to Union
A type cast can be used to create a value of a union type, by casting a value
of one of the unions member's types.
Ranges in Case Labels
A consecutive range of values can be specified in a single case, by separat-
ing the first and last values of the range with .... For example,
case 200 ... 300:
Declarations mixed with Code
In C mode the compiler will accept declarations in the middle of code as
in C99 and C++. This allows the declaration of local variables to be placed
at the point where they are required. Therefore, the declaration can be
combined with initialization of the variable.
1-144
statements, which are intrinsically
asm
operator returns one for
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
in the generated
\n
and pointers to
void
and function types.
void
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers