Added CMake option to disable generation of ClassInfo.offTi arrays, defaults to OFF.

This commit is contained in:
Tomas Lindquist Olsen
2008-12-02 01:44:17 +01:00
parent 91a2c257b0
commit 879bed7df6
3 changed files with 22 additions and 3 deletions

View File

@@ -11,7 +11,8 @@ class C
void main()
{
auto c = C.classinfo;
assert(c.offTi !is null);
if (c.offTi !is null)
{
assert(c.offTi.length == 4);
size_t base = 2*size_t.sizeof;
@@ -24,4 +25,5 @@ void main()
assert(c.offTi[2].ti == typeid(long));
assert(c.offTi[3].offset == base+16);
assert(c.offTi[3].ti == typeid(int));
}
}