Differences From Artifact [a584e5dfec]:
- File src/macros.h — part of check-in [2d4a63cfcb] at 2012-03-17 14:26:12 on branch trunk — Move definition of __BIGGEST_ALIGNMENT__ to macros.h. (user: js, size: 8722) [annotate] [blame] [check-ins using]
To Artifact [ef3c33f2fd]:
- File
src/macros.h
— part of check-in
[d989794cc2]
at
2012-03-21 17:33:21
on branch trunk
— objc_setProperty(): Use a signed char for copy.
No more abusing a poor BOOL... (user: js, size: 8729) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
96 97 98 99 100 101 102 | #ifndef _WIN32 # define OF_PATH_DELIMITER '/' #else # define OF_PATH_DELIMITER '\\' #endif extern id objc_getProperty(id, SEL, ptrdiff_t, BOOL); | | | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | #ifndef _WIN32 # define OF_PATH_DELIMITER '/' #else # define OF_PATH_DELIMITER '\\' #endif extern id objc_getProperty(id, SEL, ptrdiff_t, BOOL); extern void objc_setProperty(id, SEL, ptrdiff_t, id, BOOL, signed char); #define OF_IVAR_OFFSET(ivar) ((intptr_t)&ivar - (intptr_t)self) #define OF_GETTER(ivar, atomic) \ return objc_getProperty(self, _cmd, OF_IVAR_OFFSET(ivar), atomic); #define OF_SETTER(ivar, value, atomic, copy) \ objc_setProperty(self, _cmd, OF_IVAR_OFFSET(ivar), value, atomic, copy); |
︙ | ︙ |