Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Project level defines
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rodgerb
Starting Member

USA
1 Posts

Posted - Apr 11 2008 :  2:46:53 PM  Show Profile  Reply with Quote
We have two projects in C++. One project has a preprocessor definition of SUPER (among other things like WIN32, _DEBUG, etc...) the other does not have it. The 2 projects share most of their code. Code meant for one but not the other looks like this:

#if defined(SUPER)
<code>
#endif

Visual Assist grays out the #if def'ed code even though the active project has SUPER in its list of preprocessor definitions. How can I get it to see the #define and NOT gray out the code? Why does VA ignore the preprocessor definitions?

rhummer
Tomato Guru

USA
527 Posts

Posted - Apr 11 2008 :  4:17:51 PM  Show Profile  Reply with Quote
IIRC that is not VA X graying out the code at least for VS2005 and above, as the IDE is doing that. Which the IDE drawing is very flaky.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 11 2008 :  5:25:09 PM  Show Profile  Reply with Quote
Yes, rhummer you remember correctly
This coloring is done by the IDE itself, even if you disable Visual Assist (VAssistX menu -> Enable/Disable Visual Assist X)
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 11 2008 :  6:42:50 PM  Show Profile  Reply with Quote
The IDE should update the color when you make the appropriate project configuration active. I'm not sure if it takes a compile to kick in as well.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000