Mercurial > projects > ldc
diff gen/classes.cpp @ 1453:f35a9a77d256
More tweaks.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Mon, 01 Jun 2009 18:58:21 +0100 |
parents | 3af4ad55a004 |
children | 89e38fbfef1f |
line wrap: on
line diff
--- a/gen/classes.cpp Sat May 30 17:23:32 2009 +0100 +++ b/gen/classes.cpp Mon Jun 01 18:58:21 2009 +0100 @@ -672,6 +672,8 @@ // ClassInfo *base; // base class // void *destructor; // void *invariant; // class invariant +// version(D_Version2) +// void *xgetMembers; // uint flags; // void *deallocator; // OffsetTypeInfo[] offTi; @@ -690,7 +692,11 @@ ClassDeclaration* cinfo = ClassDeclaration::classinfo; +#if DMDV2 + if (cinfo->fields.dim != 13) +#else if (cinfo->fields.dim != 12) +#endif { error("object.d ClassInfo class is incorrect"); fatal();