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
 Alt-G problem with macro'd variable declarations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mrkita
Starting Member

Germany
1 Posts

Posted - Apr 05 2012 :  2:11:51 PM  Show Profile  Reply with Quote
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!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 05 2012 :  6:21:15 PM  Show Profile  Reply with Quote
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.
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