Author |
Topic |
|
Stefan Maton
New Member
7 Posts |
Posted - Nov 02 2006 : 5:11:52 PM
|
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
19024 Posts |
Posted - Nov 03 2006 : 08:17:34 AM
|
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 |
|
|
Stefan Maton
New Member
7 Posts |
Posted - Nov 06 2006 : 1:58:26 PM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Nov 06 2006 : 2:15:53 PM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Nov 10 2006 : 1:16:37 PM
|
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 |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Jan 24 2011 : 4:08:49 PM
|
case=3566 is fixed in build 1840 |
Whole Tomato Software, Inc. |
|
|
Stefan Maton
New Member
7 Posts |
Posted - Jan 25 2011 : 02:07:07 AM
|
Wow... it only took... eeeh... almost 5 years... Thanks for fixing it though... |
|
|
|
Topic |
|