[project @ 2000-10-11 14:07:52 by simonmar]
authorsimonmar <unknown>
Wed, 11 Oct 2000 14:07:52 +0000 (14:07 +0000)
committersimonmar <unknown>
Wed, 11 Oct 2000 14:07:52 +0000 (14:07 +0000)
add macro GLOBAL_VAR()

ghc/compiler/HsVersions.h

index eae9cc9..d1bad70 100644 (file)
@@ -10,6 +10,12 @@ you will screw up the layout where they are used in case expressions!
 
 #endif
 
+#ifdef __GLASGOW_HASKELL__
+#define GLOBAL_VAR(name,value,ty)  \
+name = global (value) :: IORef (ty); \
+{-# NOINLINE name #-}
+#endif
+
 #define COMMA ,
 
 #ifdef DEBUG