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 Frith-MacDonald 1998-11-19 21:26:27 +00:00
parent 48a8783482
commit 5777121734
31 changed files with 182 additions and 199 deletions

View file

@ -1040,7 +1040,7 @@ static int debug_run_loop = 0;
id saved_mode;
int num_inputs = 0;
assert (mode);
NSAssert(mode, NSInvalidArgumentException);
saved_mode = _current_mode;
_current_mode = mode;
@ -1209,14 +1209,14 @@ static int debug_run_loop = 0;
if (FD_ISSET (fd_index, &write_fds))
{
id watcher = (id) NSMapGet (wfd_2_object, (void*)fd_index);
assert (watcher);
NSAssert(watcher, NSInternalInconsistencyException);
[watcher eventFor:(void*)fd_index mode:_current_mode];
[NSNotificationQueue runLoopASAP];
}
if (FD_ISSET (fd_index, &read_fds))
{
id watcher = (id) NSMapGet (rfd_2_object, (void*)fd_index);
assert (watcher);
NSAssert(watcher, NSInternalInconsistencyException);
[watcher eventFor:(void*)fd_index mode:_current_mode];
[NSNotificationQueue runLoopASAP];
}