CNF: Silence pointer fix-up message unless gc debugging is enabled
[ghc.git] / rts / RtsSymbols.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2000-2015
4 *
5 * RTS Symbols
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #pragma once
10
11 #include "ghcautoconf.h"
12 #include "LinkerInternals.h"
13 #include <stdbool.h>
14
15 #if defined(LEADING_UNDERSCORE)
16 #define MAYBE_LEADING_UNDERSCORE_STR(s) ("_" s)
17 #else
18 #define MAYBE_LEADING_UNDERSCORE_STR(s) (s)
19 #endif
20
21 typedef struct _RtsSymbolVal {
22 const SymbolName* lbl;
23 SymbolAddr* addr;
24 bool weak;
25 } RtsSymbolVal;
26
27 extern RtsSymbolVal rtsSyms[];