ObjFW  Check-in [320d776ded]

Overview
Comment:Add OF_KINDOF
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 320d776ded2ba70e553711c5c36dc37ebc59849d82904c0563d941f4fa484d54
User & Date: js on 2015-06-13 01:02:25
Other Links: manifest | tags
Context
2015-06-13
11:11
Update ObjFW.xcodeproj to Xcode 7 check-in: f25b2c9e91 user: js tags: trunk
01:02
Add OF_KINDOF check-in: 320d776ded user: js tags: trunk
2015-06-12
23:59
Add support for and use the new ObjC generics check-in: 5329fe7c1a user: js tags: trunk
Changes

Modified src/macros.h from [602c2a02eb] to [73c4a25692].

169
170
171
172
173
174
175






176
177
178
179
180
181
182

#if __has_feature(objc_generics)
# define OF_HAVE_GENERICS
# define OF_GENERIC(...) <__VA_ARGS__>
#else
# define OF_GENERIC(...)
#endif







#if defined(__clang__) || __GCC_VERSION__ >= 405
# define OF_UNREACHABLE __builtin_unreachable();
#else
# define OF_UNREACHABLE abort();
#endif








>
>
>
>
>
>







169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188

#if __has_feature(objc_generics)
# define OF_HAVE_GENERICS
# define OF_GENERIC(...) <__VA_ARGS__>
#else
# define OF_GENERIC(...)
#endif

#if __has_feature(objc_kindof)
# define OF_KINDOF(cls) __kindof cls
#else
# define OF_KINDOF(cls) id
#endif

#if defined(__clang__) || __GCC_VERSION__ >= 405
# define OF_UNREACHABLE __builtin_unreachable();
#else
# define OF_UNREACHABLE abort();
#endif