Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Class inheritance with macros

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
honya15 Posted - Jun 29 2015 : 2:24:32 PM
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!
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 13 2016 : 12:21:10 AM
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.
honya15 Posted - Jan 04 2016 : 08:55:50 AM
Sorry to bother you, but do you have any updates? Couldn't find it in the patch notes.
accord Posted - Aug 25 2015 : 5:00:50 PM
No, unfortunately we haven't got to this yet. I have increased the priority of this case for you, hopefully it'll help.
honya15 Posted - Aug 25 2015 : 1:07:08 PM
Any update on the topic?
accord Posted - Jul 02 2015 : 4:56:47 PM
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.

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