Overview
Comment: | instance.m: Allow nil for objc_destructInstance() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c3ec9bb65a4790fc4aa7eafa5d9782cb |
User & Date: | js on 2017-07-01 19:43:58 |
Other Links: | manifest | tags |
Context
2017-07-01
| ||
19:45 | Add missing void in parameter list check-in: 019a294022 user: js tags: trunk | |
19:43 | instance.m: Allow nil for objc_destructInstance() check-in: c3ec9bb65a user: js tags: trunk | |
17:09 | TableGenerator: Generate decomposition tables check-in: 0c87b05f79 user: js tags: trunk | |
Changes
Modified src/instance.h from [0671acd0b4] to [656a4aad81].
︙ | ︙ | |||
18 19 20 21 22 23 24 | OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif extern id objc_constructInstance(Class _Nullable, void *_Nullable); | | | 18 19 20 21 22 23 24 25 26 27 28 29 30 | OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif extern id objc_constructInstance(Class _Nullable, void *_Nullable); extern void *objc_destructInstance(id _Nullable); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |
Modified src/instance.m from [dcb3da3872] to [163d513c31].
︙ | ︙ | |||
66 67 68 69 70 71 72 73 74 75 76 77 78 79 | } void * objc_destructInstance(id obj) { Class cls; void (*last)(id, SEL) = NULL; #ifdef OF_OBJFW_RUNTIME objc_zero_weak_references(obj); #endif if (destructSel == NULL) destructSel = sel_registerName(".cxx_destruct"); | > > > | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | } void * objc_destructInstance(id obj) { Class cls; void (*last)(id, SEL) = NULL; if (obj == nil) return NULL; #ifdef OF_OBJFW_RUNTIME objc_zero_weak_references(obj); #endif if (destructSel == NULL) destructSel = sel_registerName(".cxx_destruct"); |
︙ | ︙ |