Changeset 20b7c08 in mainline


Ignore:
Timestamp:
2012-10-11T13:17:42Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
639d9dd5
Parents:
1466a8f
Message:

libc: add macros for structure padding

File:
1 edited

Legend:

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

    r1466a8f r20b7c08  
    5454#endif
    5555
     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]
     61
    5662/** @}
    5763 */
Note: See TracChangeset for help on using the changeset viewer.