mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Raise when attempting to use unimplemented classes. Check for null pointers
in more runtime functions (probably still many cases where we crash if null pointers are passed to the API and Apple behave more tolrantly). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
873b26930a
commit
337be3cce0
6 changed files with 114 additions and 27 deletions
|
@ -179,6 +179,14 @@ static NSMutableDictionary *allLocales = nil;
|
|||
static NSDictionary *canonicalLocales = nil;
|
||||
static NSRecursiveLock *classLock = nil;
|
||||
|
||||
#if GS_USE_ICU == 0
|
||||
+ (id) allocWithZone: (NSZone*)z
|
||||
{
|
||||
[self notImplemented: _cmd
|
||||
reason: @"missing ICU support at configure time."];
|
||||
}
|
||||
#endif
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSLocale class])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue