Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Hide #ifdef

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
harmy_ro Posted - Oct 13 2006 : 05:57:33 AM
It would be nice if VisualAssist would support a parsing
of all defined macros, then to have an option to hide the
code that is not compiled based on that.

For example:
#ifdef OPTION
..
codeA
..
#else
..
codeB
..
#endif

If somewhere in the code you have #define OPTION you could see
only codeA. If OPTION is not defined you could see only codeB.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 13 2006 : 08:18:46 AM
VS2005 will highlight code that is not currently being compiled.

VA is designed to help you write code, even if it is not currently being compiled. A good example of why is people who compile on two different OS's, e.g. Windows and Unix, as I have often done. I do nearly all of my editing in the IDE with the help of VA, but I still want VA's help on code that will not compile under Windows.

The other element is that VA is not actually a compiler, and it does not automatically have access to all of the information required to work out which pre-processor definitions are currently live.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000