acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_acme.h
1// Created by camilo <3ThomasBorregaardSorensen!!
2// acme_acme.h
3//
4//
5
6
7#if defined(_acme_project)
8#define CLASS_DECL_ACME CLASS_DECL_EXPORT
9#define LIBIDN_BUILDING
10#else
11#define CLASS_DECL_ACME CLASS_DECL_IMPORT
12#endif
13
14#pragma once
15
16
17#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER)
18#define MS_COMPILER _MSC_VER
19#endif
20
21
22#ifdef UNIVERSAL_WINDOWS
23#define INLINE_CLASS_DECL_ACME CLASS_DECL_ACME
24#else
25#define INLINE_CLASS_DECL_ACME
26#endif
27
28
29#ifdef __OBJC__
30
31
32#define NON_CONVERGING_LANG_IS_TERMINAL_LANG
33
34
35#if defined(__cplusplus)
36
37
38#define __OBJECTIVE_CPP__
39
40#define __PARTIAL_CPP
41
42#else
43
44
45#define __OBJECTIVE_C__
46
47
48#endif
49
50
51#endif
52
53
54#ifdef __cplusplus_winrt
55
56
57#define NON_CONVERGING_LANG_IS_TERMINAL_LANG
58
59
60#endif
61
62
63#ifndef NON_CONVERGING_LANG_IS_TERMINAL_LANG
64
65
66#define ACME_LANGUAGE
67
68
69#endif
70
71
72
73
74
75
76#ifdef ACME_LANGUAGE
77
78
79#if defined(__cplusplus)
80
81
82#define cplusplus
83
84
85#else
86
87
88#define cplus
89
90
91#endif
92
93
94#endif
95
96
97#define __IDENTIFIER_CONCATENATE(a, b) a##b
98
99#define __IDENTIFIER(a) a
100
101#define IDENTIFIER_CONCATENATE(a, b) __IDENTIFIER_CONCATENATE(a,b)
102
103#define IDENTIFIER_SUFFIX_OPERATING_SYSTEM(a) IDENTIFIER_CONCATENATE(__IDENTIFIER(a), __IDENTIFIER(OPERATING_SYSTEM_NAMESPACE))
104
105#define IDENTIFIER_PREFIX_OPERATING_SYSTEM(a) IDENTIFIER_CONCATENATE(__IDENTIFIER(OPERATING_SYSTEM_NAMESPACE), __IDENTIFIER(a))
106
107
108#define USUAL_OPERATING_SYSTEM_SUPPRESSIONS
109
110
111#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
112#define GNU_COMPILER
113#endif
114
115
116#if defined(_MSC_VER) && !defined(__clang__)
117#define MICROSOFT_COMPILER
118#endif
119
120
121#if defined(__clang__) && !defined(_MSC_VER) && !defined(__GNUC__)
122#define CLANG_COMPILER
123#endif
124
125
126#if defined(__clang__)
127
128//#error "__clang__"
129
130#if defined(__has_feature)
131
132//#error "__has_feature"
133
134//#include <sanitizer/asan_interface.h>
135
136#if __has_feature(address_sanitizer)
137
138//#error "address_sanitizer"
139
140#define __ADDRESS_SANITIZER__
141
142#endif
143
144#endif
145
146#elif defined(__GNUC__)
147
148#ifdef __SANITIZE_ADDRESS__
149
150#define __ADDRESS_SANITIZER__
151
152#endif
153
154#endif
155
156
157