Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    r20b7c08 r062d900  
    5252            | ((((uint64_t) (up)) & 0xffffffff) << 32))
    5353
     54#ifndef member_to_inst
     55#define member_to_inst(ptr_member, type, member_identif) \
     56        ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))
    5457#endif
    5558
    56 #define _paddname(line) PADD_ ## line ## __
    57 #define _padd(width, line) uint ## width ## _t _paddname(line)
    58 #define PADD32(count) _padd(32, __LINE__)[count]
    59 #define PADD16(count) _padd(16, __LINE__)[count]
    60 #define PADD8(count) _padd(8, __LINE__)[count]
     59
     60#endif
    6161
    6262/** @}
Note: See TracChangeset for help on using the changeset viewer.