Differences From Artifact [ffa2588354]:
- File src/macros.h — part of check-in [2de9660312] at 2017-09-28 23:02:23 on branch trunk — Enable -Wnullable-to-nonnull-conversion and adjust (user: js, size: 19875) [annotate] [blame] [check-ins using]
To Artifact [52d18b1a04]:
- File
src/macros.h
— part of check-in
[60214356c2]
at
2017-10-15 22:49:40
on branch trunk
— Rename __GCC_VERSION__ to OF_GCC_VERSION
__GCC_VERSION__ is reserved and could be used by GCC in the future. (user: js, size: 19871) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
106 107 108 109 110 111 112 | # else # /* Hopefully no arch needs more than 16 byte alignment */ # define OF_BIGGEST_ALIGNMENT 16 # endif #endif #ifdef __GNUC__ | | | | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | # else # /* Hopefully no arch needs more than 16 byte alignment */ # define OF_BIGGEST_ALIGNMENT 16 # endif #endif #ifdef __GNUC__ # define OF_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) #else # define OF_GCC_VERSION 0 #endif #ifndef __has_feature # define __has_feature(x) 0 #endif #ifndef __has_attribute |
︙ | ︙ | |||
196 197 198 199 200 201 202 | #if __has_feature(objc_kindof) # define OF_KINDOF(cls) __kindof cls #else # define OF_KINDOF(cls) id #endif | | | | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | #if __has_feature(objc_kindof) # define OF_KINDOF(cls) __kindof cls #else # define OF_KINDOF(cls) id #endif #if defined(__clang__) || OF_GCC_VERSION >= 405 # define OF_UNREACHABLE __builtin_unreachable(); #else # define OF_UNREACHABLE abort(); #endif #if defined(__clang__) || OF_GCC_VERSION >= 406 # define OF_SENTINEL __attribute__((__sentinel__)) # define OF_NO_RETURN __attribute__((__noreturn__)) #else # define OF_SENTINEL # define OF_NO_RETURN #endif |
︙ | ︙ |