| changeset 91 | 5f4402180204 |
| parent 86 | 32ad0523b309 |
| child 92 | e3974e7360e9 |
1.1 --- a/src/Utility.h Wed Jul 25 00:16:52 2012 -0700 1.2 +++ b/src/Utility.h Wed Jul 25 00:48:08 2012 -0700 1.3 @@ -238,6 +238,8 @@ 1.4 return t1 < t2 ? t1 : t2; 1.5 } 1.6 1.7 +#define OFFSETOF(Class, Member) reinterpret_cast<size_t>(&((Class *)NULL)->Member) 1.8 + 1.9 } 1.10 1.11 #endif // _include_jitcraft_utility_h_