Differences From Artifact [6f6ec3f922]:
- File
src/OFObject.m
— part of check-in
[d7365be372]
at
2013-05-22 18:45:08
on branch trunk
— Import OFThread.h unconditionally.
It's safe to always import OFThread.h now as OFThread even offers
limited functionality when threads are unavailable. (user: js, size: 25532) [annotate] [blame] [check-ins using]
To Artifact [8d2c38124f]:
- File src/OFObject.m — part of check-in [32230a1615] at 2013-05-22 21:09:40 on branch trunk — Show a backtrace for uncaught exceptions. (user: js, size: 25813) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #include <string.h> #include <assert.h> #include <sys/time.h> #import "OFObject.h" #import "OFTimer.h" #import "OFRunLoop.h" #import "OFThread.h" #import "OFAllocFailedException.h" #import "OFEnumerationMutationException.h" #import "OFInitializationFailedException.h" | > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #include <string.h> #include <assert.h> #include <sys/time.h> #import "OFObject.h" #import "OFArray.h" #import "OFTimer.h" #import "OFRunLoop.h" #import "OFThread.h" #import "OFAllocFailedException.h" #import "OFEnumerationMutationException.h" #import "OFInitializationFailedException.h" |
︙ | ︙ | |||
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | uint32_t of_hash_seed; #if !defined(OF_APPLE_RUNTIME) || defined(__OBJC2__) static void uncaught_exception_handler(id exception) { fprintf(stderr, "\nRuntime error: Unhandled exception:\n%s\n", [[exception description] UTF8String]); abort(); } #endif static void enumeration_mutation_handler(id object) { | > > > > > > > > > > | 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | uint32_t of_hash_seed; #if !defined(OF_APPLE_RUNTIME) || defined(__OBJC2__) static void uncaught_exception_handler(id exception) { OFArray *backtrace = nil; fprintf(stderr, "\nRuntime error: Unhandled exception:\n%s\n", [[exception description] UTF8String]); if ([exception respondsToSelector: @selector(backtrace)]) backtrace = [exception backtrace]; if (backtrace != nil) fprintf(stderr, "\nBacktrace:\n %s\n\n", [[backtrace componentsJoinedByString: @"\n "] UTF8String]); abort(); } #endif static void enumeration_mutation_handler(id object) { |
︙ | ︙ |