User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
377Targeting MC56F83xx/DSP5685x Controllers
Listing C.2 Unnamed Arguments
void f(int ) {} /* OK, if ANSI Strict is disabled */
void f(int i) {} /* ALWAYS OK */
•A # token that does not appear before an argument in a macro definition. Listing
C.3 shows an example.
Listing C.3 Using # in Macro Definitions
#define add1(x) #x #1
/* OK, if ANSI_strict is disabled,
but probably not what you wanted:
add1(abc) creates "abc"#1 */
#define add2(x) #x "2"
/* ALWAYS OK: add2(abc) creates "abc2" */
An identifier after #endif. Listing C.4 shows an example.
Listing C.4 Identifiers After #endif
#ifdef __MWERKS__
/* . . . */
#endif __MWERKS__ /* OK, if ANSI_strict is disabled */
#ifdef __MWERKS__
/* . . . */
#endif /*__MWERKS__*/ /* ALWAYS OK */
This pragma corresponds to the ANSI Strict setting in the C/C++ Language panel. To
check this setting, use __option (ANSI_strict), described in Checking
Settings. By default, this pragma is disabled.
asmoutput
Controls the generation of an assembly file for each compiled file processed.
Prototype
#pragma asmoutput [on|off]