cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / rts / sm / ShouldCompact.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 2016
4 *
5 * GC support for immutable non-GCed structures
6 *
7 * Documentation on the architecture of the Garbage Collector can be
8 * found in the online commentary:
9 *
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #pragma once
15
16 #define SHOULDCOMPACT_STATIC 0
17 #define SHOULDCOMPACT_IN_CNF 1
18 #define SHOULDCOMPACT_NOTIN_CNF 2
19 #define SHOULDCOMPACT_PINNED 3
20
21 #ifndef CMINUSMINUS
22 extern StgWord shouldCompact (StgCompactNFData *str, StgClosure *p);
23 #endif