mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
3bbf4ce6d8
commit
924fcadb91
5 changed files with 34 additions and 15 deletions
|
@ -42,6 +42,8 @@
|
|||
#include <stdio.h>
|
||||
|
||||
|
||||
static NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
|
||||
|
||||
#define _e_info (((id*)_reserved)[0])
|
||||
#define _e_stack (((id*)_reserved)[1])
|
||||
|
||||
|
@ -1051,3 +1053,15 @@ _NSRemoveHandler (NSHandler* handler)
|
|||
#endif
|
||||
thread->_exception_handler = handler->next;
|
||||
}
|
||||
|
||||
NSUncaughtExceptionHandler *
|
||||
NSGetUncaughtExceptionHandler()
|
||||
{
|
||||
return _NSUncaughtExceptionHandler;
|
||||
}
|
||||
|
||||
void
|
||||
NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler *handler)
|
||||
{
|
||||
_NSUncaughtExceptionHandler = handler;
|
||||
}
|
||||
|
|
|
@ -104,12 +104,6 @@ NSString *const NSIsNotNilTransformerName
|
|||
NSString *const NSUnarchiveFromDataTransformerName
|
||||
= @"NSUnarchiveFromData";
|
||||
|
||||
/**
|
||||
* Last-resort exception handler, a function taking an NSException and
|
||||
* returning void. Set with NSSetUncaughtExceptionHandler().
|
||||
*/
|
||||
NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
|
||||
|
||||
/* NSBundle */
|
||||
NSString *NSBundleDidLoadNotification = @"NSBundleDidLoadNotification";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue