Differences From Artifact [343585f1c5]:
- File src/objc_properties.m — part of check-in [08f1d13520] at 2012-03-23 12:42:05 on branch runtime — Add objc_{get,set}PropertyStruct() for GCC >= 4.6. (user: js, size: 3268) [annotate] [blame] [check-ins using]
- File src/runtime/property.m — part of check-in [adbce6d8f4] at 2012-03-23 12:59:32 on branch runtime — Move objc_{properties,sync} to runtime. (user: js, size: 3268) [annotate] [blame] [check-ins using]
To Artifact [677b6f2060]:
- File
src/runtime/property.m
— part of check-in
[417b213d41]
at
2012-07-16 23:49:50
on branch trunk
— Add OF_ENSURE.
This is to be used when the condition includes a statement that needs to
be executed, as with assert, this would not be executed anymore when
NDEBUG is defined. (user: js, size: 3284) [annotate] [blame] [check-ins using]
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | - - + | * file. */ #include "config.h" #include <string.h> |
︙ | |||
47 48 49 50 51 52 53 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | - + - - + - + - - + | objc_getProperty(id self, SEL _cmd, ptrdiff_t offset, BOOL atomic) { if (atomic) { id *ptr = (id*)(void*)((char*)self + offset); #ifdef OF_THREADS unsigned hash = SPINLOCK_HASH(ptr); |
︙ | |||
128 129 130 131 132 133 134 | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | - + - - - + - + - - - + | objc_getPropertyStruct(void *dest, const void *src, ptrdiff_t size, BOOL atomic, BOOL strong) { if (atomic) { #ifdef OF_THREADS unsigned hash = SPINLOCK_HASH(src); |