1 #import <objc/runtime.h>
4 typedef struct objc_autoreleasepool
{
5 struct objc_autoreleasepool
*_parent
;
6 unsigned long _pageCount
;
8 unsigned long _nextSlot
;
9 struct objc_autoreleasepool
*_childPool
;
10 } objc_autoreleasepool
;
12 typedef struct objc_exception_frame
{
14 struct objc_exception_frame
*parent
;
16 } objc_exception_frame
;
18 typedef void NSUncaughtExceptionHandler(id exception
);
20 typedef struct objc_tls
{
21 objc_autoreleasepool
*pool
;
22 objc_exception_frame
*exception_frame
;
23 NSUncaughtExceptionHandler
*uncaught_exception_handler
;
26 objc_tls
*objc_tlsCurrent();