2 #elif defined(__arm64__) && __arm64__
4 #ifndef HYPHENATECHAT_SWIFT_H
5 #define HYPHENATECHAT_SWIFT_H
6 #pragma clang diagnostic push
7 #pragma clang diagnostic ignored "-Wgcc-compat"
9 #if !defined(__has_include)
10 # define __has_include(x) 0
12 #if !defined(__has_attribute)
13 # define __has_attribute(x) 0
15 #if !defined(__has_feature)
16 # define __has_feature(x) 0
18 #if !defined(__has_warning)
19 # define __has_warning(x) 0
22 #if __has_include(<swift/objc-prologue.h>)
23 # include <swift/objc-prologue.h>
26 #pragma clang diagnostic ignored "-Wduplicate-method-match"
27 #pragma clang diagnostic ignored "-Wauto-import"
29 #include <Foundation/Foundation.h>
31 #if defined(__cplusplus)
41 #if !defined(SWIFT_TYPEDEFS)
42 # define SWIFT_TYPEDEFS 1
43 # if __has_include(<uchar.h>)
45 # elif !defined(__cplusplus)
46 typedef uint_least16_t char16_t;
47 typedef uint_least32_t char32_t;
49 typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
50 typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
51 typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
52 typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
53 typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
54 typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
55 typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
56 typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
57 typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
58 typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
59 typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
60 typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
63 #if !defined(SWIFT_PASTE)
64 # define SWIFT_PASTE_HELPER(x, y) x##y
65 # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
67 #if !defined(SWIFT_METATYPE)
68 # define SWIFT_METATYPE(X) Class
70 #if !defined(SWIFT_CLASS_PROPERTY)
71 # if __has_feature(objc_class_property)
72 # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
74 # define SWIFT_CLASS_PROPERTY(...)
78 #if __has_attribute(objc_runtime_name)
79 # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
81 # define SWIFT_RUNTIME_NAME(X)
83 #if __has_attribute(swift_name)
84 # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
86 # define SWIFT_COMPILE_NAME(X)
88 #if __has_attribute(objc_method_family)
89 # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
91 # define SWIFT_METHOD_FAMILY(X)
93 #if __has_attribute(noescape)
94 # define SWIFT_NOESCAPE __attribute__((noescape))
96 # define SWIFT_NOESCAPE
98 #if __has_attribute(ns_consumed)
99 # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
101 # define SWIFT_RELEASES_ARGUMENT
103 #if __has_attribute(warn_unused_result)
104 # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
106 # define SWIFT_WARN_UNUSED_RESULT
108 #if __has_attribute(noreturn)
109 # define SWIFT_NORETURN __attribute__((noreturn))
111 # define SWIFT_NORETURN
113 #if !defined(SWIFT_CLASS_EXTRA)
114 # define SWIFT_CLASS_EXTRA
116 #if !defined(SWIFT_PROTOCOL_EXTRA)
117 # define SWIFT_PROTOCOL_EXTRA
119 #if !defined(SWIFT_ENUM_EXTRA)
120 # define SWIFT_ENUM_EXTRA
122 #if !defined(SWIFT_CLASS)
123 # if __has_attribute(objc_subclassing_restricted)
124 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
125 # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
127 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
128 # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
131 #if !defined(SWIFT_RESILIENT_CLASS)
132 # if __has_attribute(objc_class_stub)
133 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
134 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
136 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
137 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
141 #if !defined(SWIFT_PROTOCOL)
142 # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
143 # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
146 #if !defined(SWIFT_EXTENSION)
147 # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
150 #if !defined(OBJC_DESIGNATED_INITIALIZER)
151 # if __has_attribute(objc_designated_initializer)
152 # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
154 # define OBJC_DESIGNATED_INITIALIZER
157 #if !defined(SWIFT_ENUM_ATTR)
158 # if defined(__has_attribute) && __has_attribute(enum_extensibility)
159 # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
161 # define SWIFT_ENUM_ATTR(_extensibility)
164 #if !defined(SWIFT_ENUM)
165 # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
166 # if __has_feature(generalized_swift_name)
167 # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
169 # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
172 #if !defined(SWIFT_UNAVAILABLE)
173 # define SWIFT_UNAVAILABLE __attribute__((unavailable))
175 #if !defined(SWIFT_UNAVAILABLE_MSG)
176 # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
178 #if !defined(SWIFT_AVAILABILITY)
179 # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
181 #if !defined(SWIFT_WEAK_IMPORT)
182 # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
184 #if !defined(SWIFT_DEPRECATED)
185 # define SWIFT_DEPRECATED __attribute__((deprecated))
187 #if !defined(SWIFT_DEPRECATED_MSG)
188 # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
190 #if __has_feature(attribute_diagnose_if_objc)
191 # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
193 # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
195 #if defined(__OBJC__)
196 #if !defined(IBSegueAction)
197 # define IBSegueAction
200 #if !defined(SWIFT_EXTERN)
201 # if defined(__cplusplus)
202 # define SWIFT_EXTERN extern "C"
204 # define SWIFT_EXTERN extern
207 #if !defined(SWIFT_CALL)
208 # define SWIFT_CALL __attribute__((swiftcall))
210 #if defined(__cplusplus)
211 #if !defined(SWIFT_NOEXCEPT)
212 # define SWIFT_NOEXCEPT noexcept
215 #if !defined(SWIFT_NOEXCEPT)
216 # define SWIFT_NOEXCEPT
219 #if defined(__cplusplus)
220 #if !defined(SWIFT_CXX_INT_DEFINED)
221 #define SWIFT_CXX_INT_DEFINED
223 using Int = ptrdiff_t;
228 #if defined(__OBJC__)
229 #if __has_feature(modules)
230 #if __has_warning("-Watimport-in-framework-header")
231 #pragma clang diagnostic ignored "-Watimport-in-framework-header"
236 #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
237 #pragma clang diagnostic ignored "-Wduplicate-method-arg"
238 #if __has_warning("-Wpragma-clang-attribute")
239 # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
241 #pragma clang diagnostic ignored "-Wunknown-pragmas"
242 #pragma clang diagnostic ignored "-Wnullability"
243 #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
245 #if __has_attribute(external_source_symbol)
246 # pragma push_macro("any")
248 # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HyphenateChat",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
249 # pragma pop_macro("any")
252 #if defined(__OBJC__)
256 #if defined(__cplusplus)
258 #if __has_attribute(external_source_symbol)
259 # pragma clang attribute pop
261 #pragma clang diagnostic pop
265 #error unsupported Swift architecture