Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Alt-G problem with macro'd variable declarations

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
mrkita Posted - Apr 05 2012 : 2:11:51 PM
Hi,

My company is using 10.6.1837.0 ( I have tried this with 10.7.1901.0 as well).

We have macro that we wrap some of our class member variable declarations in. Variables that are wrapped in this macro do not work correctly with ALT-G. The variables are not correctly parsed by VAX and not recognized.

An example:

MyClass
{
MyClass(){}

int MyMacro(m_myvar);
}

MyMacro is defined something like:

#define MyMacro(member) \member; \MyMacro2(member, __MYCOUNTER)

MyMacro2 is some special template function that does some work under the hood.

Any ideas? Or further needed information?

Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Apr 05 2012 : 6:21:15 PM
Since a macro seems to call an another one (MyMacro2), you can try turning on recursive macro parsing:
http://docs.wholetomato.com?W363

If it doesn't work, to fully understand your problem, I would need the source (definition) of MyMacro2 and __MYCOUNTER.
If you don't want to share them publicly, you can send them in via the following form:
http://www.wholetomato.com/support/contact.asp

Please include the URL of this topic so we can match it up.

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