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
 Macros in Parameter Suggestion Tooltips (VS2005)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

3dSorcery
New Member

5 Posts

Posted - Sep 08 2006 :  11:18:54 AM  Show Profile  Reply with Quote
Hey There..

The issue that I'm having is with macro expansion inside the function parameter tooltips. I was wondering if there was any way to make this work or if it's just not supported. There is a checkbox under options titled "Evaluate all macros used in definitions", but this doesn't seem to fix the problem. VS2005 (and 2003 as well, I believe) will do this automatically, and it works fine if I turn VA off. If you would like a screen shot of what I'm talking about I can provide one. Any help is greatly appreciated!

- Chris

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 08 2006 :  1:21:38 PM  Show Profile  Reply with Quote
I want to say that it is just not supported. But, I don't know that for sure.

Support?

Joe Pizzi
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 08 2006 :  1:46:39 PM  Show Profile  Reply with Quote
Can you post a simple example of what you expect and what you get?
Go to Top of Page

3dSorcery
New Member

5 Posts

Posted - Sep 08 2006 :  10:05:41 PM  Show Profile  Reply with Quote
Sure,

First, I'm defining a macro that contains function parameters. I do this because the same function parameters show up in about 5 different levels of code (because of the complex class hierarchy) and I don't want to have to touch the code in 5 places to make a change. So something like this for exampe...

#define ADD_ARGS int a, int b

Then I declare the function...

int AddFunc(ADD_ARGS);

Then when I use the function, the intellisense for the parameter list shows up as (ADD_ARGS) when I'm expecting to see (int a, int b).

Again, the main reason that I feel visual assist SHOULD do this is because the default VS2005 (and 2003 I think) do this and it's extremely helpful.
Go to Top of Page

3dSorcery
New Member

5 Posts

Posted - Sep 12 2006 :  7:23:16 PM  Show Profile  Reply with Quote
Bump.... Should I be putting this in the requested features?
Go to Top of Page

V.Solo
New Member

7 Posts

Posted - Sep 12 2006 :  10:18:08 PM  Show Profile  Reply with Quote

[offtopic]
3dSorcery :
<cough>, <cough>
[/offtopic]
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 12 2006 :  11:23:20 PM  Show Profile  Reply with Quote
This is a tough one for to make a call on IMO.

By default I wouldn't expect the macro to expand when used in that way.

I'll query support on this to get their take.

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

Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 13 2006 :  02:08:58 AM  Show Profile  Reply with Quote
It's not currently supported but since vs2005 does it that way we'll have to at least consider it. Off hand, I would wonder if there are more cases where that behavior would not be welcome though.
Go to Top of Page

3dSorcery
New Member

5 Posts

Posted - Sep 13 2006 :  10:22:30 AM  Show Profile  Reply with Quote
I agree that there may be cases where that behavior wouldn't be desired, so I think that it makes a great checkbox in the options :)
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 14 2006 :  02:15:13 AM  Show Profile  Reply with Quote
Are you asking for expansion in the tooltip only, or actually in the code if a suggestion is accepted?

Joe Pizzi
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 14 2006 :  10:43:04 AM  Show Profile  Reply with Quote
We confirmed VS2005 resolves macros within paramater tooltips; VA X does not. One can make an argument for either case.

We wrote up a request to make VA X display both, i.e.:

1 of 2 ADD_ARGS
2 of 2 int a, int b

case=2527
Go to Top of Page

3dSorcery
New Member

5 Posts

Posted - Sep 15 2006 :  8:24:58 PM  Show Profile  Reply with Quote
Awesome!

Sounds good. Can't wait to see if it gets added :)
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