[project @ 2003-01-27 23:23:30 by wolfgang]
authorwolfgang <unknown>
Mon, 27 Jan 2003 23:23:30 +0000 (23:23 +0000)
committerwolfgang <unknown>
Mon, 27 Jan 2003 23:23:30 +0000 (23:23 +0000)
Add #ifdef around an assertion that only holds for the threaded RTS.

ghc/rts/Capability.c

index ee25f27..d96b724 100644 (file)
@@ -137,7 +137,9 @@ static Capability *returning_capabilities;
  */ 
 void grabCapability(Capability** cap)
 {
+#ifdef RTS_SUPPORTS_THREADS
   ASSERT(rts_n_free_capabilities > 0);
+#endif
 #if !defined(SMP)
   rts_n_free_capabilities = 0;
   *cap = &MainCapability;