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
 Feature Requests
 Hide #ifdef
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

harmy_ro
Starting Member

1 Posts

Posted - Oct 13 2006 :  05:57:33 AM  Show Profile  Reply with Quote
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.

Edited by - harmy_ro on Oct 13 2006 05:58:14 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 13 2006 :  08:18:46 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
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