error.h File Reference

#include <setjmp.h>
#import <objc/objc-api.h>

Go to the source code of this file.


struct  _NXHandler


#define NX_DURING
#define NX_ENDHANDLER   }}
#define NX_HANDLER   _NXRemoveHandler(&NXLocalHandler); } else {
#define NX_RAISE(code, data1, data2)   _NXRaiseError( (code), (data1), (data2) )
#define NX_RERAISE()
#define NX_VALRETURN(val)
#define NXGetUncaughtExceptionHandler()   _NXUncaughtExceptionHandler
#define NXSetUncaughtExceptionHandler(proc)   (_NXUncaughtExceptionHandler = (proc))


typedef volatile void NXExceptionRaiser (int code, const void *data1, const void *data2)
typedef _NXHandler NXHandler
typedef void NXUncaughtExceptionHandler (int code, const void *data1, const void *data2)


OBJC_EXPORT void _NXAddHandler (NXHandler *handler)
OBJC_EXPORT void _NXRaiseError (int code, const void *data1, const void *data2)
OBJC_EXPORT void _NXRemoveHandler (NXHandler *handler)
OBJC_EXPORT void NXAllocErrorData (int size, void **data)
OBJC_EXPORT NXExceptionRaiserNXGetExceptionRaiser (void)
OBJC_EXPORT void NXResetErrorData (void)
OBJC_EXPORT void NXSetExceptionRaiser (NXExceptionRaiser *proc)


OBJC_EXPORT NXUncaughtExceptionHandler_NXUncaughtExceptionHandler
OBJC_EXPORT NXExceptionRaiser NXDefaultExceptionRaiser

Define Documentation

#define NX_DURING


{ NXHandler NXLocalHandler;         \
            _NXAddHandler(&NXLocalHandler);     \
            if( !_setjmp(NXLocalHandler.jumpState) ) {

Definition at line 83 of file error.h.

#define NX_ENDHANDLER   }}

Definition at line 89 of file error.h.

#define NX_HANDLER   _NXRemoveHandler(&NXLocalHandler); } else {

Definition at line 87 of file error.h.

#define NX_RAISE code,
data2   )     _NXRaiseError( (code), (data1), (data2) )

Definition at line 112 of file error.h.

#define NX_RERAISE  ) 


_NXRaiseError( NXLocalHandler.code, \
                NXLocalHandler.data1, NXLocalHandler.data2 )

Definition at line 115 of file error.h.

#define NX_VALRETURN val   ) 


do { typeof(val) temp = (val);  \
            _NXRemoveHandler(&NXLocalHandler);  \
            return(temp); } while (0)

Definition at line 91 of file error.h.



do { _NXRemoveHandler(&NXLocalHandler); \
            return; } while (0)

Definition at line 95 of file error.h.

#define NXGetUncaughtExceptionHandler  )     _NXUncaughtExceptionHandler

Definition at line 55 of file error.h.

#define NXSetUncaughtExceptionHandler proc   )     (_NXUncaughtExceptionHandler = (proc))

Definition at line 56 of file error.h.

Typedef Documentation

typedef volatile void NXExceptionRaiser(int code, const void *data1, const void *data2)

Definition at line 123 of file error.h.

typedef struct _NXHandler NXHandler

typedef void NXUncaughtExceptionHandler(int code, const void *data1, const void *data2)

Definition at line 52 of file error.h.

Function Documentation

OBJC_EXPORT void _NXAddHandler NXHandler handler  ) 

OBJC_EXPORT void _NXRaiseError int  code,
const void *  data1,
const void *  data2

OBJC_EXPORT void _NXRemoveHandler NXHandler handler  ) 

OBJC_EXPORT void NXAllocErrorData int  size,
void **  data

OBJC_EXPORT NXExceptionRaiser* NXGetExceptionRaiser void   ) 

OBJC_EXPORT void NXResetErrorData void   ) 

OBJC_EXPORT void NXSetExceptionRaiser NXExceptionRaiser proc  ) 

Variable Documentation

OBJC_EXPORT NXUncaughtExceptionHandler* _NXUncaughtExceptionHandler

Definition at line 54 of file error.h.

OBJC_EXPORT NXExceptionRaiser NXDefaultExceptionRaiser

Definition at line 126 of file error.h.

Generated on Tue Sep 19 21:18:37 2006 for Boomerang by  doxygen 1.4.6