User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
430
Targeting MC56F83xx/DSP5685x Controllers
warn_undefmacro
Controls the detection of undefined macros in #if / #elif conditionals.
Prototype
#pragma warn_undefmacro on | off | reset
Remarks
Listing C.31
provides an example.
Listing C.31 Example of Undefined Macro
#if UNDEFINEDMACRO == 4 // WARNING: undefined macro
// ’UNDEFINEDMACRO’ used in
// #if/#elif conditional
Use this pragma to detect the use of undefined macros (especially expressions) where
the default value 0 is used.
NOTE
A warning is only issued when a macro is evaluated. A short-
circuited “&&” or “||” test or unevaluated “?:” will not produce a
warning.
This pragma corresponds to the Undefined Macro in #if setting in the C/C++
Warnings panel. To check this setting, use __option (warn_undefmacro),
described in Checking Settings
By default, this pragma is off.
warn_unusedarg
Controls the recognition of unreferenced arguments.
Prototype
#pragma warn_unusedarg on | off | reset