ObjFW  Check-in [68b3d08ac1]

Overview
Comment:macros.h: Add OF_SWIFT_NAME
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 68b3d08ac1ebdc762911a20d8ab09c7748f933fa61a55b62b29fd6fa43c94e7a
User & Date: js on 2017-10-29 22:22:48
Other Links: manifest | tags
Context
2017-10-29
22:37
Make GCC happy again check-in: 9fa618244f user: js tags: trunk
22:22
macros.h: Add OF_SWIFT_NAME check-in: 68b3d08ac1 user: js tags: trunk
21:58
Convert methods to properties where appropriate check-in: f3ccf14461 user: js tags: trunk
Changes

Modified src/macros.h from [40aa2d8e24] to [4bf3aa81bc].

247
248
249
250
251
252
253






254
255
256
257
258
259
260

#if __has_attribute(__objc_designated_initializer__)
# define OF_DESIGNATED_INITIALIZER \
    __attribute__((__objc_designated_initializer__))
#else
# define OF_DESIGNATED_INITIALIZER
#endif







#ifdef __GNUC__
# ifdef OF_X86_64
#  define OF_X86_64_ASM
# endif
# ifdef OF_X86
#  define OF_X86_ASM







>
>
>
>
>
>







247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266

#if __has_attribute(__objc_designated_initializer__)
# define OF_DESIGNATED_INITIALIZER \
    __attribute__((__objc_designated_initializer__))
#else
# define OF_DESIGNATED_INITIALIZER
#endif

#if __has_attribute(__swift_name__)
# define OF_SWIFT_NAME(name) __attribute__((__swift_name__(name)))
#else
# define OF_SWIFT_NAME(name)
#endif

#ifdef __GNUC__
# ifdef OF_X86_64
#  define OF_X86_64_ASM
# endif
# ifdef OF_X86
#  define OF_X86_ASM