ObjFW  Check-in [b84438dcfd]

Overview
Comment:macros.h: Add OF_DEPRECATED
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b84438dcfdd4b11aceab90042f719ee1edbc36a4b15dc6495eac3edecb91d9f3
User & Date: js on 2023-10-15 14:53:15
Other Links: manifest | tags
Context
2023-10-15
14:55
Add OFHTTPRequestMethodString() check-in: 12c09ef41e user: js tags: trunk
14:53
macros.h: Add OF_DEPRECATED check-in: b84438dcfd user: js tags: trunk
12:55
Make GCC happy again check-in: 94ed4fc6f0 user: js tags: trunk
Changes

Modified src/macros.h from [caf7b03bf1] to [1006063eb3].

287
288
289
290
291
292
293






294
295
296
297
298
299
300

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







#if __has_attribute(__objc_boxable__)
# define OF_BOXABLE __attribute__((__objc_boxable__))
#else
# define OF_BOXABLE
#endif








>
>
>
>
>
>







287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

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

#ifdef __GNUC__
# define OF_DEPRECATED(project, major, minor, msg)		\
    __attribute__((__deprecated__("Deprecated in " #project " "	\
    #major "." #minor ": " msg)))
#endif

#if __has_attribute(__objc_boxable__)
# define OF_BOXABLE __attribute__((__objc_boxable__))
#else
# define OF_BOXABLE
#endif