Overview
Comment: | Make OF_INVALID_INIT_METHOD compatible with ARC |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
29d691e83464290f0541e71ca231fcf5 |
User & Date: | js on 2016-06-06 20:56:58 |
Other Links: | manifest | tags |
Context
2016-06-06
| ||
20:57 | macros.h: Define OF_MIPS64_ASM on MIPS64 check-in: a2a47a8757 user: js tags: trunk | |
20:56 | Make OF_INVALID_INIT_METHOD compatible with ARC check-in: 29d691e834 user: js tags: trunk | |
2016-06-05
| ||
21:17 | Always cast to unsigned char for to{upper,lower}() check-in: 09a0d12bae user: js tags: trunk | |
Changes
Modified src/macros.h from [96b0f326a5] to [e1b8fc06c1].
︙ | ︙ | |||
291 292 293 294 295 296 297 | "in " __FILE__ ":%d:\n" #cond "\n", \ __LINE__); \ abort(); \ } \ } while (0) #define OF_UNRECOGNIZED_SELECTOR of_method_not_found(self, _cmd); | > > > > > > | > | 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | "in " __FILE__ ":%d:\n" #cond "\n", \ __LINE__); \ abort(); \ } \ } while (0) #define OF_UNRECOGNIZED_SELECTOR of_method_not_found(self, _cmd); #if __has_feature(objc_arc) # define OF_INVALID_INIT_METHOD \ [self doesNotRecognizeSelector: _cmd]; \ \ abort(); #else # define OF_INVALID_INIT_METHOD \ @try { \ [self doesNotRecognizeSelector: _cmd]; \ } @catch (id e) { \ [self release]; \ @throw e; \ } \ \ abort(); #endif #ifdef __cplusplus extern "C" { #endif extern id objc_getProperty(id, SEL, ptrdiff_t, BOOL); extern void objc_setProperty(id, SEL, ptrdiff_t, id, BOOL, signed char); #ifdef __cplusplus |
︙ | ︙ |