Updates for MacOS-X compatibility

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26690 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-06-23 07:15:10 +00:00
parent 3bbf4ce6d8
commit 924fcadb91
5 changed files with 34 additions and 15 deletions

View file

@ -251,12 +251,6 @@ typedef struct _NSHandler
*/
typedef void NSUncaughtExceptionHandler(NSException *exception);
/**
* Variable used to hold the current uncaught exception handler. Use the
* function NSSetUncaughtExceptionHandler() to set this.
*/
GS_EXPORT NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
/**
* Returns the exception handler called when an exception is generated and
* not caught by the programmer (by enclosing in <code>NS_DURING</code> and
@ -264,7 +258,8 @@ GS_EXPORT NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
* an error message and exits the program. You can change this behavior by
* calling NSSetUncaughtExceptionHandler().
*/
#define NSGetUncaughtExceptionHandler() _NSUncaughtExceptionHandler
GS_EXPORT NSUncaughtExceptionHandler *
NSGetUncaughtExceptionHandler();
/**
* <p>Sets the exception handler called when an exception is generated and
@ -290,8 +285,8 @@ GS_EXPORT NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
* [NSException] instance as an argument.
* </p>
*/
#define NSSetUncaughtExceptionHandler(proc) \
(_NSUncaughtExceptionHandler = (proc))
GS_EXPORT void
NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler *handler);
/* NS_DURING, NS_HANDLER and NS_ENDHANDLER are always used like: