Changes in uspace/lib/c/include/macros.h [a211838:805552d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/macros.h
ra211838 r805552d 55 55 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 56 56 57 #ifndef member_to_inst 57 58 #define member_to_inst(ptr_member, type, member_identif) \ 58 ((type *) (((void *) (ptr_member)) - \59 ((void *) &(((type *) 0)->member_identif)))) 59 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif)))) 60 #endif 60 61 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__)67 62 68 63 #endif 69 64 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 70 71 /** @} 71 72 */
Note:
See TracChangeset
for help on using the changeset viewer.