Configure Undefines

You can create a list of undefined macros by clicking Configure Undefines. In the Set Undefines dialog, type the macro name in the Macro field and click Add.

The priority for macro definitions is as follows, from lowest to highest priority:

  1. Built-in language macros (__FILE__, etc.)
  2. Compiler configuration file
  3. Macro definitions in a synchronized MSVC project
  4. Undefines of compiler defines (via the Configure Undefines button)
  5. Project defines (Macros tab)
  6. Define on undc command line using -define
  7. Define in source file (#define / #undefine in source)

Tip: If you have a lot of macros or they are generated by another process, you can add macros in bulk by specifying a file prefixed by an @ sign. For example, “@mydefs.txt”. This file should contain macro definitions in any of the following formats:

#define foo bar 
foo=bar 
foo bar 

All of these formats define a macro “foo” to be “bar”.

These files can also be used with the command line analyzer “undc” described in Command Line Processing.


Scientific Toolworks, Inc.
http://www.scitools.com