Mercurial > projects > ldc
changeset 1391:3af4ad55a004
Added simple check for ClassInfo change introduced in DMD 1.045, it must have 12 fields.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sun, 17 May 2009 23:15:04 +0200 |
parents | c5a92bee639d |
children | 336faed34424 |
files | gen/classes.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/classes.cpp Sun May 17 22:40:02 2009 +0200 +++ b/gen/classes.cpp Sun May 17 23:15:04 2009 +0200 @@ -690,6 +690,12 @@ ClassDeclaration* cinfo = ClassDeclaration::classinfo; + if (cinfo->fields.dim != 12) + { + error("object.d ClassInfo class is incorrect"); + fatal(); + } + // use the rtti builder RTTIBuilder b(ClassDeclaration::classinfo);