improve exception support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29898 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-11 07:22:10 +00:00
parent 19e49c3314
commit ee25a8f059
6 changed files with 82 additions and 19 deletions

View file

@ -31,6 +31,16 @@
#ifndef __NSException_h_GNUSTEP_BASE_INCLUDE
#define __NSException_h_GNUSTEP_BASE_INCLUDE
#import <GNUstepBase/GSVersionMacros.h>
#import <GNUstepBase/GSConfig.h>
#if defined(_NATIVE_OBJC_EXCEPTIONS)
#define USER_NATIVE_OBC_EXCEPTIONS 1
#else
#define USER_NATIVE_OBC_EXCEPTIONS 0
#endif
#if BASE_NATIVE_OBJC_EXCEPTIONS != USER_NATIVE_OBJC_EXCEPTIONS
#error The current setting for native-objc-exceptions does not match that of gnuste-base ... please correct this.
#endif
#import <Foundation/NSString.h>
#include <setjmp.h>