Changes in uspace/lib/c/include/macros.h [805552d:a211838] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/macros.h
r805552d ra211838 55 55 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 56 56 57 #ifndef member_to_inst58 57 #define member_to_inst(ptr_member, type, member_identif) \ 59 ((type *) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))60 #endif 58 ((type *) (((void *) (ptr_member)) - \ 59 ((void *) &(((type *) 0)->member_identif)))) 61 60 61 #define _paddname(line) PADD_ ## line ## __ 62 #define _padd(width, line) uint ## width ## _t _paddname(line) 63 64 #define PADD32 _padd(32, __LINE__) 65 #define PADD16 _padd(16, __LINE__) 66 #define PADD8 _padd(8, __LINE__) 62 67 63 68 #endif 64 69 65 #define _paddname(line) PADD_ ## line ## __66 #define _padd(width, line) uint ## width ## _t _paddname(line)67 #define PADD32 _padd(32, __LINE__)68 #define PADD16 _padd(16, __LINE__)69 #define PADD8 _padd(8, __LINE__)70 71 70 /** @} 72 71 */
Note:
See TracChangeset
for help on using the changeset viewer.