vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
VVAssertionHandler.h
1 
2 #if IPHONE
3 #import <UIKit/UIKit.h>
4 #else
5 #import <Cocoa/Cocoa.h>
6 #endif
7 
8 
9 
10 
11 #define USE_CUSTOM_ASSERTION_HANDLER \
12 { \
13  NSThread *__currentThread = [NSThread currentThread]; \
14  NSDictionary *__threadDict = (__currentThread==nil) ? nil : [__currentThread threadDictionary]; \
15  if (__threadDict != nil) { \
16  VVAssertionHandler *__newAH = [[VVAssertionHandler alloc] init]; \
17  if (__newAH != nil) { \
18  [__threadDict setValue:__newAH forKey:@"NSAssertionHandler"]; \
19  [__newAH release]; \
20  __newAH = nil; \
21  } \
22  } \
23 }
24 
25 
26 
27 @interface VVAssertionHandler : NSAssertionHandler {
28 
29 }
30 
31 @end