mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
5a2bd37c96
commit
a3751eb7bf
31 changed files with 182 additions and 199 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue