Changeset 36244 in webkit for trunk/JavaScriptCore/kjs/JSValue.h


Ignore:
Timestamp:
Sep 6, 2008, 10:44:58 PM (17 years ago)
Author:
[email protected]
Message:

Merge squirrelfish-extreme to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSValue.h

    r36016 r36244  
    2929#include "ustring.h"
    3030#include <stddef.h> // for size_t
     31
     32// The magic number 0x4000 is not important here, it is being subtracted back out (avoiding using zero since this
     33// can have unexpected effects in this type of macro, particularly where multiple-inheritance is involved).
     34#define OBJECT_OFFSET(class, member) (reinterpret_cast<ptrdiff_t>(&(reinterpret_cast<class*>(0x4000)->member)) - 0x4000)
    3135
    3236namespace KJS {
Note: See TracChangeset for help on using the changeset viewer.