rv1126-uboot/include/u-boot
Marek Behún be129a1092 UPSTREAM: include: Add a variadic macro to call a callback for all arguments
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).

Change-Id: Ic186ed444a78a86a4cfa10f9ca1198c0bfa9af10
Signed-off-by: Marek Behun <marek.behun@nic.cz>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 59981e6a3d6074bf5413c1875a95325a4b8c01ca)
2018-01-17 15:27:28 +08:00
..
crc.h UPSTREAM: lib: Add CRC32-C 2018-01-17 15:27:28 +08:00
md5.h
rsa-checksum.h
rsa-mod-exp.h
rsa.h
sha1.h
sha256.h
u-boot.lds.h
variadic-macro.h UPSTREAM: include: Add a variadic macro to call a callback for all arguments 2018-01-17 15:27:28 +08:00
zlib.h