Differences From Artifact [957228cdfe]:
- File
src/macros.h
— part of check-in
[d230ac577d]
at
2011-02-09 18:55:29
on branch trunk
— Initial PSP port.
Does compile with --disable-threads --disable-shared, but does not link
yet. (user: js, size: 5698) [annotate] [blame] [check-ins using]
To Artifact [ab000dd8bb]:
- File src/macros.h — part of check-in [2c72efb4e7] at 2011-03-11 13:02:34 on branch trunk — Make it easier to generate getters and setters. (user: js, size: 5980) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
67 68 69 70 71 72 73 74 75 76 77 78 79 80 | #ifndef _WIN32 # define OF_PATH_DELIM '/' #else # define OF_PATH_DELIM '\\' #endif static OF_INLINE uint16_t OF_CONST_FUNC of_bswap16_const(uint16_t i) { return (i & UINT16_C(0xFF00)) >> 8 | (i & UINT16_C(0x00FF)) << 8; } | > > > > > > | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | #ifndef _WIN32 # define OF_PATH_DELIM '/' #else # define OF_PATH_DELIM '\\' #endif #define OF_IVAR_OFFSET(ivar) ((char*)&ivar - (char*)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); static OF_INLINE uint16_t OF_CONST_FUNC of_bswap16_const(uint16_t i) { return (i & UINT16_C(0xFF00)) >> 8 | (i & UINT16_C(0x00FF)) << 8; } |
︙ | ︙ |