Table 1-12. Predefined Macro Listing (Cont'd)
Macro
__SIGNED_CHARS__
__STDC__
__STDC_VERSION__
__TIME__
__VERSION__
Header Files
A header file contains C or C++ declarations and macro definitions. Use
the
preprocessor directive to access header files for your pro-
#include
gram. Header file names have an
categories of header files:
• System header files declare the interfaces to the libraries supplied
with the ADSP-219x product. Include them in your program for
the definitions and declarations you need to access. Use angle
brackets to indicate a system header file:
• User header files contain declarations for interfaces between the
source files of your program. Use double quotes to indicate a user
header file:
Writing Preprocessor Macros
A macro is a name of a block of text that the preprocessor substitutes. Use
the
preprocessor command to create a macro definition. When a
#define
macro definition has arguments, the block of text the preprocessor substi-
tutes can vary with each new set of arguments.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Function
Defines
__SIGNED_CHARS__
-unsigned-char
Defines
__STDC__
Defines
__STDC_VERSION__
The preprocessor expands this macro into the current time as a
string constant. The time string constant takes the form
(ANSI standard).
Defines
__VERSION__
ber of the compiler used to compile this module.
extension. There are two main
.h
#include "file"
as 1 unless you compile with the
command-line switch
as 1
as 199409L
as a string constant giving the version num-
#include <file>
Compiler
hh:mm:ss
1-149
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?