X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FRts.h;h=3ca0d9a9130d32cc826ad768bddbd13677a34fc4;hb=0372ac231bd18e993a2533f784805046876d5527;hp=ebc2f237d9589976df339701453570a9f7072c30;hpb=03a9ff01812afc81eb5236fd3063cbec44cf469e;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 -------------------------------------------------------------------------- */