Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define checkResult(result,operation) (_checkResult((result),(operation),strrchr(__FILE__, '/'),__LINE__))
- static inline BOOL _checkResult(OSStatus result, const char *operation, const char* file, int line) {
- if ( result != noErr ) {
- NSLog(@"%s:%d: %s result %d %08X %4.4s\n", file, line, operation, (int)result, (int)result, (char*)&result);
- return NO;
- }
- return YES;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement