1.1 --- a/jitcraft/Objects.h Fri Jul 06 19:24:22 2012 -0400
1.2 +++ b/jitcraft/Objects.h Sat Jul 07 01:45:33 2012 -0400
1.3 @@ -1,4 +1,5 @@
1.4 -/*
1.5 +/* vim: set ts=4 sw=4 tw=99 et:
1.6 + *
1.7 * Copyright (C) 2012 David Anderson
1.8 *
1.9 * This file is part of JITCraft.
1.10 @@ -76,6 +77,11 @@
1.11 inline bool is(MapKind map);
1.12
1.13 inline void write(Zone *zone, Object **ptr, Object *value);
1.14 +
1.15 + static inline size_t offsetOfMap() {
1.16 + // Wtf? Clang won't accept offsetof(Object, map_) here...
1.17 + return 0;
1.18 + }
1.19 };
1.20
1.21 // Maps describe the layout of GCObjects. Every GCObject requires a map.