[PyKDE] SIP - support for #define?

Sato, Kristine Kristine.Sato at vuinteractive.com
Fri Nov 1 22:01:00 GMT 2002


I have code which uses a #define to reference a class by a different name:

#define MpPoint3D	MpVector3D

class MpVector3D
{
};

class ObPosition
{
	u32 GetPosition(MpPoint3D&);
};
Does SIP support this? I've tried putting the #define line in my .sip file,
and it gets a parse error.

Any suggestions? I guess I can just do

class MpPoint3D : MpVector3D
{
};

if I have to.

Much thanks,
Kristine




More information about the PyQt mailing list