Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 No suggestions on macro including member call

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
FlintZA Posted - Nov 19 2008 : 04:10:55 AM
We use a fairly typical templated singleton pattern which is used as in the following example:

class CNetworkManager: public iicore::TSingleton<CNetworkManager>


For code brevity (and the sanity of old-school developers ;) ) we have convenience macros for many of these singletons eg:

#define g_rNetworkManager iinetwork::CNetworkManager::GetInstance()


We use this quite extensively and we keep running into the problem that VAX's code suggestions don't work with it at all. For example, if I entered
g_rNetworkManager.
no suggestions are offered, and even hitting ctrl+space doesn't bring them up.

A little testing indicates that VAX apparently cant handle a macro which returns an object from a member (or static) function and offer suggestions based on that.
The following basic example illustrates the problem:

class CMemberObj
{
public:
	int m_iValue;
};
class COwner
{
public:
	CMemberObj& GetMember();
};
COwner cOwner;
#define MACROTEST cOwner.GetMember()


Now entering
MACROTEST.
does not result in any suggestions (I would expect m_iValue to be suggested). Is there a way to change this behavior, or is this a bug?
2   L A T E S T    R E P L I E S    (Newest First)
FlintZA Posted - Nov 20 2008 : 03:22:18 AM
Thanks for pointing it out, my apologies my search didn't turn it up :)
rhummer Posted - Nov 19 2008 : 10:31:06 AM
This has been reported before.

Read this reply by support for info on this:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4253

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