Replace assert with NSAssert

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3248 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-11-19 21:26:27 +00:00
parent 5a2bd37c96
commit a3751eb7bf
31 changed files with 182 additions and 199 deletions

View file

@ -39,7 +39,6 @@
#include <Foundation/NSMapTable.h>
#include <Foundation/NSAutoreleasePool.h>
#include <assert.h>
#include <sys/stat.h>
#ifndef __WIN32__
@ -203,7 +202,7 @@ _bundle_path_for_name(NSString* path, NSString* name)
void
_bundle_load_callback(Class theClass, Category *theCategory)
{
assert(_loadingBundle);
NSCAssert(_loadingBundle, NSInternalInconsistencyException);
/* Don't store categories */
if (!theCategory)
[(NSMutableArray *)[_loadingBundle _bundleClasses] addObject: (id)theClass];
@ -266,7 +265,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
path = [[NSProcessInfo processInfo] processName];
output = objc_find_executable([path cString]);
assert(output);
NSAssert(output, NSInternalInconsistencyException);
path = [NSString stringWithCString: output];
OBJC_FREE(output);