File: ghclib_api.h

package info (click to toggle)
haskell-ghc-lib-parser-ex 9.6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: haskell: 1,955; ansic: 53; makefile: 6
file content (59 lines) | stat: -rw-r--r-- 1,735 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
Copyright (c) 2020 - 2023 Shayne Fletcher. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause.
*/

#if !defined(GHCLIB_API_H)
#  define GHCLIB_API_H

#  if !(defined (GHC_9_10) \
     || defined (GHC_9_8)  \
     || defined (GHC_9_6)  \
     || defined (GHC_9_4)  \
     || defined (GHC_9_2)  \
     || defined (GHC_9_0)  \
     || defined (GHC_8_10) \
     || defined (GHC_8_8))
#    if defined (MIN_VERSION_ghc_lib_parser)
#       if !MIN_VERSION_ghc_lib_parser ( 1,  0,  0)
#         define GHC_9_10
#       elif MIN_VERSION_ghc_lib_parser (9,  8,  0)
#         define GHC_9_8
#       elif MIN_VERSION_ghc_lib_parser (9,  6,  0)
#         define GHC_9_6
#       elif MIN_VERSION_ghc_lib_parser (9,  4,  0)
#         define GHC_9_4
#       elif MIN_VERSION_ghc_lib_parser (9,  2,  0)
#         define GHC_9_2
#       elif MIN_VERSION_ghc_lib_parser (9,  0,  0)
#         define GHC_9_0
#       elif MIN_VERSION_ghc_lib_parser (8, 10,  0)
#         define GHC_8_10
#       elif MIN_VERSION_ghc_lib_parser (8,  8,  0)
#         define GHC_8_8
#       else
#         error Unsupported GHC API version
#      endif
#    else
#      if __GLASGOW_HASKELL__   == 909
#        define GHC_9_10
#      elif __GLASGOW_HASKELL__ == 908
#        define GHC_9_8
#      elif __GLASGOW_HASKELL__ == 906
#        define GHC_9_6
#      elif __GLASGOW_HASKELL__ == 904
#        define GHC_9_4
#      elif __GLASGOW_HASKELL__ == 902
#        define GHC_9_2
#      elif __GLASGOW_HASKELL__ == 900
#        define GHC_9_0
#      elif __GLASGOW_HASKELL__ == 810
#        define GHC_8_10
#      elif __GLASGOW_HASKELL__ == 808
#        define GHC_8_8
#      else
#        error Unsupported GHC API version
#      endif
#    endif
#  endif
#endif