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

Dizzy
New Member

2 Posts

Posted - Aug 19 2013 :  10:55:39 AM  Show Profile  Reply with Quote
I have a macro:


#define DECLARE_CONSTRUCTORS(__class) \	__class(); \	__class(__class const& rhs); \	~__class(); \	__class& operator=(__class const& rhs);

#define DECLARE_SINGLETON(__class) \	public: \		inline static __class* Get() { static __class singleton; return &singleton; } \	private: \		DECLARE_CONSTRUCTORS(__class)


When i put it in my class, like this:

class foo
{
	DECLARE_SINGLETON(foo);
}

it is unrecognized by VA - i cannot go to definition, no IntelliSense hint when i try to access Get() method and, thus, no methods of this class are shown after Get.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 19 2013 :  3:00:42 PM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?

Does turning:

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense

On or Off make any difference?

Testing this here, with VS2010 and VA 1949 I am seeing "Get()" suggested for a class instance, with "Get content from default Intellisense" turned On.

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

Dizzy
New Member

2 Posts

Posted - Aug 21 2013 :  03:26:21 AM  Show Profile  Reply with Quote
My IntelliSense was turned off, when i turned it on, this issue has gone. Thank you for your help!

Edited by - Dizzy on Aug 21 2013 03:26:34 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 21 2013 :  11:28:59 AM  Show Profile  Reply with Quote
Thank you for the update, I am glad the solution was so easy. If you have any more problems please let us know, and we will do everything we can to help.

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