/* -----------------------------------------------------------------------------
- * $Id: Rts.h,v 1.2 1998/12/02 13:21:21 simonm Exp $
+ * $Id: Rts.h,v 1.6 1999/02/05 16:02:27 simonm Exp $
+ *
+ * (c) The GHC Team, 1998-1999
*
* Top-level include file for the RTS itself
*
-------------------------------------------------------------------------- */
#ifndef DEBUG
-#define ASSERT(predicate) /* nothing */
-#else
-
-void _stgAssert (char *, unsigned int);
-
-#define ASSERT(predicate) \
- if (predicate) \
- /*null*/; \
- else \
- _stgAssert(__FILE__, __LINE__)
-
-#endif /* DEBUG */
-
-#ifndef DEBUG
#define IF_DEBUG(c,s) doNothing()
#else
#define IF_DEBUG(c,s) if (RtsFlags.DebugFlags.c) { s; }
#define stg_min(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _a : _b; })
#define stg_max(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _b : _a; })
-
#define UNUSED __attribute__((unused))
#endif RTS_H