Changeset af60409 in mainline for uspace/lib/c/include/macros.h


Ignore:
Timestamp:
2018-03-26T20:04:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb748a0
Parents:
b752a31
Message:

Modify PADDn macros so that their use is easier to parse.

File:
1 edited

Legend:

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

    rb752a31 raf60409  
    6060
    6161#define _paddname(line)     PADD_ ## line ## __
    62 #define _padd(width, line)  uint ## width ## _t _paddname(line)
     62#define _padd(width, line, n)  uint ## width ## _t _paddname(line) [n]
    6363
    64 #define PADD32  _padd(32, __LINE__)
    65 #define PADD16  _padd(16, __LINE__)
    66 #define PADD8   _padd(8, __LINE__)
     64#define PADD32(n)  _padd(32, __LINE__, n)
     65#define PADD16(n)  _padd(16, __LINE__, n)
     66#define PADD8(n)   _padd(8, __LINE__, n)
    6767
    6868#endif
Note: See TracChangeset for help on using the changeset viewer.