gpt4 book ai didi

ios - NSAssert 与 NSCAssert

转载 作者:可可西里 更新时间:2023-11-01 03:24:56 35 4
gpt4 key购买 nike

NSAssertNSCAsert 有什么区别?当我探索它们的实现时,它们看起来非常相似,但我找不到问题的答案。

我猜它还会解释 NSParameterAssertNSCParameterAssert 之间的区别。

最佳答案

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).

更多信息在 http://nshipster.com/nsassertionhandler/

关于ios - NSAssert 与 NSCAssert,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21780014/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com