X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FRts.h;h=3ca0d9a9130d32cc826ad768bddbd13677a34fc4;hb=e6218fe7eff4e34e1a3c823cd4b7aebe09d2d4fb;hp=ebc2f237d9589976df339701453570a9f7072c30;hpb=fd52f706df13955f936dbaf939d147ae734e00f4;p=ghc-hetmet.git diff --git a/ghc/includes/Rts.h b/ghc/includes/Rts.h index ebc2f23..3ca0d9a 100644 --- a/ghc/includes/Rts.h +++ b/ghc/includes/Rts.h @@ -70,6 +70,22 @@ extern void _assertFail (char *, unsigned int); #define doNothing() do { } while (0) +#ifdef DEBUG +#define USED_IF_DEBUG +#define USED_IF_NOT_DEBUG STG_UNUSED +#else +#define USED_IF_DEBUG STG_UNUSED +#define USED_IF_NOT_DEBUG +#endif + +#ifdef THREADED_RTS +#define USED_IF_THREADS +#define USED_IF_NOT_THREADS STG_UNUSED +#else +#define USED_IF_THREADS STG_UNUSED +#define USED_IF_NOT_THREADS +#endif + /* ----------------------------------------------------------------------------- Include everything STG-ish -------------------------------------------------------------------------- */