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
 Macro confusion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Stefan Maton
New Member

7 Posts

Posted - Nov 02 2006 :  5:11:52 PM  Show Profile  Reply with Quote
Hi,

this is something that I encounter since quite some time:

Consider I have these macros:

#define ARMETHODCALLTYPE __stdcall
#define ARMETHODIMP(type) type ARMETHODCALLTYPE

and these class member functions:

ARMETHODIMP(ubool) OnInputEvent(const AR::SInputEvent *_pEvent);
ARMETHODIMP(ubool) DoLogic();


I get seperate entries for the macro part and the function declaration part in my context field (I get a "ARMETHODIMP(ubool)" entry and a "DoLogic()" entry).

Is there any way to remove this (without removing my macros)?

Best regards,
Stefan

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Nov 03 2006 :  08:17:34 AM  Show Profile  Reply with Quote
I don't understand. Adding this code to a cpp file, using VS2003 and VA 1540 I am seeing:



Which is correct, given the caret position, and makes sense. Also this is slightly different to what you are listing.

* How are you producing this effect?
* What do you see for functions that do not use any macros for return types or parameters?

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

Stefan Maton
New Member

7 Posts

Posted - Nov 06 2006 :  1:58:26 PM  Show Profile  Reply with Quote
Hi,

sorry that I only reply now. Here's what I get when I open the context combo box:



When I simply put my cursor on a function, the display is as yours.

Best regards,
Stefan
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Nov 06 2006 :  2:15:53 PM  Show Profile  Reply with Quote
I understand now. Unfortunately removing the macro's is probably the best solution.

Due to the brackets VA thinks the prototype is actually an implementation, so it is showing you the implementation and its "parameters".

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

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Nov 10 2006 :  1:16:37 PM  Show Profile  Reply with Quote
It turns out that VA understands what to do with this:

void getChocolateSize() throw()
{
}


which suggests it should be able to understand what to do here.

case=3566

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 24 2011 :  4:08:49 PM  Show Profile  Reply with Quote
case=3566 is fixed in build 1840

Whole Tomato Software, Inc.
Go to Top of Page

Stefan Maton
New Member

7 Posts

Posted - Jan 25 2011 :  02:07:07 AM  Show Profile  Reply with Quote
Wow... it only took... eeeh... almost 5 years... Thanks for fixing it though...
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