Bitmasking for introspection of Objective-C object pointers i
生活随笔
收集整理的這篇文章主要介紹了
Bitmasking for introspection of Objective-C object pointers i
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Bitmasking?for?introspection?of?Objective-C?object?pointers?i
修改方法1:
?
??#pragma clang diagnostic push
??#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"
?BOOL?workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ??YES?:?NO;
??#pragma clang diagnostic pop
修改方法2:
"某數(shù)字" & 0x1 的時候, 代表取最低位,改成if(JK_EXPECT_F(((NSUInteger)object)%2))即可。
轉(zhuǎn)載于:https://www.cnblogs.com/zyingn/p/Error_bitmasking.html
總結(jié)
以上是生活随笔為你收集整理的Bitmasking for introspection of Objective-C object pointers i的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 内置传感器---智能手机(资料)
- 下一篇: Oracle里schema理解