Differences From Artifact [8379d699e4]:
- File src/macros.h — part of check-in [18caed047e] at 2022-11-15 23:04:52 on branch trunk — Use OFLog() for OFEnsure() (user: js, size: 18381) [annotate] [blame] [check-ins using]
To Artifact [07933aec14]:
- File
src/macros.h
— part of check-in
[c86b8f10f0]
at
2022-11-16 01:27:26
on branch trunk
— Add OFAssert()
This uses the same format as OFEnsure(). (user: js, size: 18478) [annotate] [blame] [check-ins using]
︙ | |||
366 367 368 369 370 371 372 373 374 375 376 377 378 379 | 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | + + + + + + | if OF_UNLIKELY (!(cond)) { \ OFLog(@"Failed to ensure condition in " \ @__FILE__ ":%d: " @#cond, __LINE__); \ abort(); \ } \ } while (0) #endif #ifndef NDEBUG # define OFAssert(...) OFEnsure(__VA_ARGS__) #else # define OFAssert(...) #endif #define OF_UNRECOGNIZED_SELECTOR OFMethodNotFound(self, _cmd); #if __has_feature(objc_arc) # define OF_INVALID_INIT_METHOD OFMethodNotFound(self, _cmd); #else # define OF_INVALID_INIT_METHOD \ @try { \ |
︙ |