cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / includes / rts / Globals.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2006-2009
4 *
5 * The RTS stores some "global" values on behalf of libraries, so that
6 * some libraries can ensure that certain top-level things are shared
7 * even when multiple versions of the library are loaded. e.g. see
8 * Data.Typeable and GHC.Conc.
9 *
10 * Do not #include this file directly: #include "Rts.h" instead.
11 *
12 * To understand the structure of the RTS headers, see the wiki:
13 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
14 *
15 * ---------------------------------------------------------------------------*/
16
17 #pragma once
18
19 #define mkStoreAccessorPrototype(name) \
20 StgStablePtr \
21 getOrSet##name(StgStablePtr ptr);
22
23 mkStoreAccessorPrototype(GHCConcSignalSignalHandlerStore)
24 mkStoreAccessorPrototype(GHCConcWindowsPendingDelaysStore)
25 mkStoreAccessorPrototype(GHCConcWindowsIOManagerThreadStore)
26 mkStoreAccessorPrototype(GHCConcWindowsProddingStore)
27 mkStoreAccessorPrototype(SystemEventThreadEventManagerStore)
28 mkStoreAccessorPrototype(SystemEventThreadIOManagerThreadStore)
29 mkStoreAccessorPrototype(SystemTimerThreadEventManagerStore)
30 mkStoreAccessorPrototype(SystemTimerThreadIOManagerThreadStore)
31 mkStoreAccessorPrototype(LibHSghcFastStringTable)
32 mkStoreAccessorPrototype(LibHSghcPersistentLinkerState)
33 mkStoreAccessorPrototype(LibHSghcInitLinkerDone)
34 mkStoreAccessorPrototype(LibHSghcGlobalDynFlags)
35 mkStoreAccessorPrototype(LibHSghcStaticOptions)
36 mkStoreAccessorPrototype(LibHSghcStaticOptionsReady)