mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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
48a8783482
commit
5777121734
31 changed files with 182 additions and 199 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue