Differences From Artifact [0bd232c6bc]:
- File src/OFIntrospection.h — part of check-in [9e76144ef8] at 2015-06-13 22:26:05 on branch trunk — Add support for and use the new nullability (user: js, size: 7060) [annotate] [blame] [check-ins using]
To Artifact [061b43fb0e]:
- File
src/OFIntrospection.h
— part of check-in
[80e1a9655b]
at
2015-06-17 22:11:31
on branch trunk
— Add OF_NULLABLE_PROPERTY
This is necessary to make GCC (>= 4.6 and Apple GCC) happy as they don't
like the list of property attributes ending in a comma. (user: js, size: 7093) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
48 49 50 51 52 53 54 | OFString *_name; const char *_typeEncoding; } #ifdef OF_HAVE_PROPERTIES @property (readonly) SEL selector; @property (readonly, copy) OFString *name; | | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | OFString *_name; const char *_typeEncoding; } #ifdef OF_HAVE_PROPERTIES @property (readonly) SEL selector; @property (readonly, copy) OFString *name; @property OF_NULLABLE_PROPERTY (assign, readonly) const char *typeEncoding; #endif /*! * @brief Returns the selector of the method. * * @return The selector of the method */ |
︙ | ︙ | |||
88 89 90 91 92 93 94 | unsigned _attributes; OFString *_getter, *_setter; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *name; @property (readonly) unsigned attributes; | | | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | unsigned _attributes; OFString *_getter, *_setter; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *name; @property (readonly) unsigned attributes; @property OF_NULLABLE_PROPERTY (copy, readonly) OFString *getter, *setter; #endif /*! * @brief Returns the name of the property. * * @return The name of the property */ |
︙ | ︙ | |||
149 150 151 152 153 154 155 | const char *_typeEncoding; ptrdiff_t _offset; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *name; @property (readonly) ptrdiff_t offset; | | | 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | const char *_typeEncoding; ptrdiff_t _offset; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *name; @property (readonly) ptrdiff_t offset; @property OF_NULLABLE_PROPERTY (assign, readonly) const char *typeEncoding; #endif /*! * @brief Returns the name of the instance variable. * * @return The name of the instance variable */ |
︙ | ︙ |