File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2525
2626#import < JavaScriptCore/JavaScriptCore.h>
2727#import < JSValueInternal.h>
28- #import < objc/objc-runtime .h>
28+ #include < objc/message .h>
2929
3030#if JSC_OBJC_API_ENABLED
3131
Original file line number Diff line number Diff line change 8484 * - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976
8585 */
8686#if (CPU(ARM) || CPU(MIPS)) && COMPILER(GCC)
87- template <typename Type>
88- inline bool isPointerTypeAlignmentOkay (Type* ptr)
89- {
90- return !(reinterpret_cast <intptr_t >(ptr) % __alignof__ (Type));
91- }
87+
88+ // HACK, throwing an error
89+ // template<typename Type>
90+ // inline bool isPointerTypeAlignmentOkay(Type* ptr)
91+ // {
92+ // return !(reinterpret_cast<intptr_t>(ptr) % __alignof__(Type));
93+ // }
9294
9395template <typename TypePtr>
9496inline TypePtr reinterpret_cast_ptr (void * ptr)
9597{
96- ASSERT (isPointerTypeAlignmentOkay (reinterpret_cast <TypePtr>(ptr)));
98+ // ASSERT(isPointerTypeAlignmentOkay(reinterpret_cast<TypePtr>(ptr)));
9799 return reinterpret_cast <TypePtr>(ptr);
98100}
99101
100102template <typename TypePtr>
101103inline TypePtr reinterpret_cast_ptr (const void * ptr)
102104{
103- ASSERT (isPointerTypeAlignmentOkay (reinterpret_cast <TypePtr>(ptr)));
105+ // ASSERT(isPointerTypeAlignmentOkay(reinterpret_cast<TypePtr>(ptr)));
104106 return reinterpret_cast <TypePtr>(ptr);
105107}
106108#else
You can’t perform that action at this time.
0 commit comments