diff -r fb324242a675 -r 22b67b4cf067 jitcraft/Objects.h --- a/jitcraft/Objects.h Fri Jul 06 19:24:22 2012 -0400 +++ b/jitcraft/Objects.h Sat Jul 07 01:45:33 2012 -0400 @@ -1,4 +1,5 @@ -/* +/* vim: set ts=4 sw=4 tw=99 et: + * * Copyright (C) 2012 David Anderson * * This file is part of JITCraft. @@ -76,6 +77,11 @@ inline bool is(MapKind map); inline void write(Zone *zone, Object **ptr, Object *value); + + static inline size_t offsetOfMap() { + // Wtf? Clang won't accept offsetof(Object, map_) here... + return 0; + } }; // Maps describe the layout of GCObjects. Every GCObject requires a map.