Use this command to edit the value of a selected parsing condition variable. This is used for languages that support conditional compilation, such as C, C++, and Window Resource files. Conditional code is placed between #-directives such as #ifdef. See: Conditional Parsing and Preprocessor Support.
You can right-click on your source code and select Edit Condition from the menu.
Source Insight can parse those sections of code conditionally depending on the value of condition variables that you specify. The Edit Condition command lets you edit the value of a condition variable, or edit the list of condition variables.
To use this command, right-click on an identifier that is a condition variable in your code. Then select Edit Condition. You will be able to specify that variable's value.
For example, place the cursor inside of MACOBJECTS and select Edit Condition.
#ifdef MACOBJECTS
int jklm;
#endif
There are two condition variable sets. One is project specific and is stored with your project. The second set is global and applies to all projects. If a condition appears in both lists, the project specific value is used.
Edit Condition Set
Selects which condition set you want to affect. This is either the project-specific, or the global list. Any changes you make to the condition's value are put into the list you select here.
Condition
The name of the condition variable.
Value
The value of the condition. Typical values are 0 (zero) to indicate "False", or 1 to indicate "True". However, you can give the variable any value. If you leave the value empty, then Source Insight will ignore conditional preprocessor directives that refer to this variable.
Set False
Click this to set the Value field to 0 (zero).
Set True
Click this to set the Value field to 1.
Ignore
Click this to empty the Value field. When the Value field is empty, Source Insight assumes you don't want to specify the value of the condition variable. If you don't specify a value, then preprocessor statements like #if are ignored if they refer to this variable. This is the default case for any conditional variables encountered.
Scan Files
Click this button to scan your project files to determine what preprocessor variables are defined, along with their values. The results are put into either the global, or project condition list, depending on which one is selected in the Edit Condition Set option.
Edit List
Click this to go to the Conditional Parsing List dialog box, which displays all the defined conditions. The list you get to edit depends on which one is selected in the Edit Condition Set option. See: Conditional Parsing List.