Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Document Method return type

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
samaursa Posted - Sep 14 2011 : 2:45:56 PM
When I document a method with the inline keyword, the return type appears without the inline keyword (which is what we want). But if the inline keyword is replaced by a macro, then the macro appears in front of the return type. Since Visual Assist already knows that the macro expands to inline it would be nice that it automatically removes it in the return type.


#define MY_INLINE inline

// When trying to document this function, Visual Assist will fill 
// the return type parameter as: MY_INLINE void instead of just void
MY_INLINE void SomeFunc()
{
}
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 15 2011 : 11:54:53 PM
Out of interest, why are you using a macro instead of just using "inline" directly?

If the macro sometimes resolves to something else, e.g. in Debug mode, or when compiling under a different OS, then VA is likely to be aware of more than one definition of this macro, and it won't know which definition is the "correct" one.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000