From 4904c6560a58138c2f67f689d88a02e99df74e95 Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 18 Mar 1996 20:29:34 +0000 Subject: [PATCH] ([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 --- Source/RunLoop.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/RunLoop.m b/Source/RunLoop.m index 65c9436c6..ef24a19bc 100644 --- a/Source/RunLoop.m +++ b/Source/RunLoop.m @@ -147,7 +147,8 @@ static RunLoop *current_run_loop; - (void) addPort: port forMode: (id )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;