NSAssert
和 NSCAsert
有什么区别?当我探索它们的实现时,它们看起来非常相似,但我找不到问题的答案。
我猜它还会解释 NSParameterAssert
和 NSCParameterAssert
之间的区别。
最佳答案
The second is the difference between C and Objective-C assertions: NSAssert should only be used in an Objective-C context (i.e. method implementations), whereas NSCAssert should only be used in a C context (i.e. functions).
关于ios - NSAssert 与 NSCAssert,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21780014/