Making symbols undefined in C and C++

About this task

The #undef preprocessing directive undefines symbols that are previously defined by using the #define directive. This directive has the same effect as the following preprocessing switch:


   /U<name>

To undefine a symbol with #undef:

Procedure

  1. In the Set pre-processor options window, click New icon.
  2. In the Type column, select Undefine.
  3. In the Value field, type the name of the symbol you want to undefine.
  4. Click Finish.