mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
Add a header variadic-macro.h which defines the CALL_MACRO_FOR_EACH marco. This macro can be used as follows: #define TEST(x) CALL_MACRO_FOR_EACH(TEST, a, b, c, d) This will expand to TEST(a) TEST(b) TEST(c) TEST(d) The nice thing is that CALL_MACRO_FOR_EACH is a variadic macro, thus the number of arguments can vary (although it has an upper limit - in this implementation 32 arguments). Signed-off-by: Marek Behun <marek.behun@nic.cz> create mode 100644 include/u-boot/variadic-macro.h |
||
|---|---|---|
| .. | ||
| crc.h | ||
| md5.h | ||
| rsa-checksum.h | ||
| rsa-mod-exp.h | ||
| rsa.h | ||
| sha1.h | ||
| sha256.h | ||
| u-boot.lds.h | ||
| variadic-macro.h | ||
| zlib.h | ||