Changeset 35442 in webkit for trunk/JavaScriptCore/API/APICast.h
- Timestamp:
- Jul 29, 2008, 11:05:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/APICast.h
r33979 r35442 38 38 } 39 39 40 typedef const struct OpaqueJSContextGroup* JSContextGroupRef; 40 41 typedef const struct OpaqueJSContext* JSContextRef; 41 42 typedef struct OpaqueJSContext* JSGlobalContextRef; … … 75 76 { 76 77 return reinterpret_cast<KJS::PropertyNameArray*>(a); 78 } 79 80 inline KJS::JSGlobalData* toJS(JSContextGroupRef g) 81 { 82 return reinterpret_cast<KJS::JSGlobalData*>(const_cast<OpaqueJSContextGroup*>(g)); 77 83 } 78 84 … … 117 123 } 118 124 125 inline JSContextGroupRef toRef(KJS::JSGlobalData* g) 126 { 127 return reinterpret_cast<JSContextGroupRef>(g); 128 } 129 119 130 #endif // APICast_h
Note:
See TracChangeset
for help on using the changeset viewer.