mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
([RunLoop -limitDateForMode:]): Assert mode.
([RunLoop -acceptInputForMode:beforeDate:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be2ab8f283
commit
4904c6560a
1 changed files with 4 additions and 1 deletions
|
@ -147,7 +147,8 @@ static RunLoop *current_run_loop;
|
|||
- (void) addPort: port
|
||||
forMode: (id <String>)mode
|
||||
{
|
||||
/* xxx Perhaps this should be a Bag instead. */
|
||||
/* xxx Perhaps this should be a Bag instead; I think this currently works
|
||||
when a port is added more than once, but it doesn't work prettily. */
|
||||
Array *in_ports;
|
||||
|
||||
in_ports = NSMapGet (_mode_2_in_ports, mode);
|
||||
|
@ -201,6 +202,7 @@ static RunLoop *current_run_loop;
|
|||
/* Linux doesn't always return double from methods, even though
|
||||
I'm using -lieee. */
|
||||
#if 1
|
||||
assert (mode);
|
||||
return nil;
|
||||
#else
|
||||
Heap *timers;
|
||||
|
@ -253,6 +255,7 @@ static RunLoop *current_run_loop;
|
|||
NSMapTable *fd_2_object;
|
||||
id saved_mode;
|
||||
|
||||
assert (mode);
|
||||
saved_mode = _current_mode;
|
||||
_current_mode = mode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue