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!