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
 Idea: Expand Macros (C/C++)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

126 Posts

Posted - Jul 06 2011 :  4:30:32 PM  Show Profile  Reply with Quote
While the preprocessor is looked down upon a lot, it's still used widely. It would be valuable for debugging and diagnosis to be able to expand macros.

Visual Studio offers to run only the preprocessor, but that's very unwieldy to work withif you have to deal with a macro-infested code base. (Since you seem to understand macros just fine, I see no technical obstacles. That's the main reason why I'm asking you guys ;))

The way I envision it is that I just select a section of code, hit a magic VAX shortcut, and the text is expanded and remains selected.

We'd need some control over the level of expansion, maybe expanding one level per "expand macro" command. Multiple calls would expand deeper, and ctrl+Z would take me back.

Just an idea i am at the very moment excited about...

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 07 2011 :  1:00:49 PM  Show Profile  Reply with Quote
We are considering adding a refactoring command for this, at some point:

case=5160
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