| commit | 7cc095f8e3ec52ba94d91e1d327354f61236496a | [log] [tgz] |
|---|---|---|
| author | Carl Shapiro <cshapiro@google.com> | Mon May 02 20:01:42 2011 -0700 |
| committer | Carl Shapiro <cshapiro@google.com> | Mon May 02 20:05:50 2011 -0700 |
| tree | 045d0e34bc3a5c777ad349a8485afc52c90d335c | |
| parent | 0e0b3f6c6d2362f1003486463ee62240d1f027d5 [diff] [blame] |
Establish a subclass relationship between DataObject and Object. Change-Id: Ifd0e364f7789d9e13f769f8d6a65c3c573915fd3
diff --git a/vm/Common.h b/vm/Common.h index aacbbbd..8e73cd0 100644 --- a/vm/Common.h +++ b/vm/Common.h
@@ -102,6 +102,11 @@ Object* l; }; +#define OFFSETOF_MEMBER(t, f) \ + (reinterpret_cast<char*>( \ + &reinterpret_cast<t*>(16)->f) - \ + reinterpret_cast<char*>(16)) + #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) #endif /*_DALVIK_COMMON*/