Skip to content
Snippets Groups Projects
Commit 3e4dae71 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-10-11 14:07:52 by simonmar]

add macro GLOBAL_VAR()
parent 4211484b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment