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
 Document Method return type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

samaursa
Senior Member

Canada
47 Posts

Posted - Sep 14 2011 :  2:45:56 PM  Show Profile  Reply with Quote
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()
{
}

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Sep 15 2011 :  11:54:53 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
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