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
 Suggesting preprocessor macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tailsu
Senior Member

37 Posts

Posted - Sep 05 2007 :  03:49:28 AM  Show Profile  Reply with Quote
VA has a nice feature that allows it to suggest defined preprocessor macros.

There is, however, another use case - some libraries use macros to tweak its behavior, e.g.
#ifdef BOOST_ENABLE_SOME_OBSCURE_FEATURE
...
#endif

Note that BOOST_ENABLE_SOME_OBSCURE_FEATURE is nowhere defined and is left by the library developer to the user to define.

I propose that VA looks for such preprocessor conditions and suggest them when the user starts writing a #define.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 05 2007 :  08:43:32 AM  Show Profile  Reply with Quote
This is a very interesting idea.

I do wonder how helpful this would really be though, since in my experience people often add these define's to the IDE's project settings. Since this is an IDE dialog, it is not something VA interacts with.

zen is the art of being at one with the two'ness
Go to Top of Page

tailsu
Senior Member

37 Posts

Posted - Sep 05 2007 :  11:31:52 AM  Show Profile  Reply with Quote
My specific case is an exception, though. However, what you said makes it lose its generality, so I rest my case :)
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