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
 Class inheritance with macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

honya15
New Member

3 Posts

Posted - Jun 29 2015 :  2:24:32 PM  Show Profile  Reply with Quote
Hello!
I have a problem with defining a class with macros.
I have defines like this
#define CLASS( classname ) class classname
#define CLASS_FROM_CLASSES( classname ) class classname :

and so on, with structs, and more options. I need this because I have an own memtracker, and every class should be derived from it.
So with a certain value defined, these macros have other definitions like
#define CLASS( classname ) class classname : ITrackableObject
#define CLASS_FROM_CLASSES( classname ) class classname : ITrackableObject,


My problem is, that visual assist does not handle it well. I have created a va_stdafx.h file in the root of my project with the simpler define( the one above ), and now it can parse the class, but cannot parse the inherited classes( CLASS_FROM_CLASSES ).

example:
CLASS( base )
{
int x;
};

CLASS_FROM_CLASSES( derivated ) public base
{
int y;
}

now if I type
derivated value;
value.
in the suggestion box, only the y value appears, and the x does not.

Is there any way to tell the parser to check the base class? Am I doing anything wrong?
Sorry for my bad english, and thanks in advance!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 02 2015 :  4:56:47 PM  Show Profile  Reply with Quote
I was able to reproduce the problem, thank you for the clear sample code:

case=9589

Yes, VA_Stdafx.h will not help here. Unfortunately I don't know any workaround for this as of now.
Go to Top of Page

honya15
New Member

3 Posts

Posted - Aug 25 2015 :  1:07:08 PM  Show Profile  Reply with Quote
Any update on the topic?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 25 2015 :  5:00:50 PM  Show Profile  Reply with Quote
No, unfortunately we haven't got to this yet. I have increased the priority of this case for you, hopefully it'll help.

Edited by - accord on Aug 25 2015 5:03:31 PM
Go to Top of Page

honya15
New Member

3 Posts

Posted - Jan 04 2016 :  08:55:50 AM  Show Profile  Reply with Quote
Sorry to bother you, but do you have any updates? Couldn't find it in the patch notes.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 13 2016 :  12:21:10 AM  Show Profile  Reply with Quote
Unfortunately no further updates yet. This is still on our list of bugs to fix. We have not forgotten this, but sadly I don't currently have an estimate for when we might get to this.

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