u-boot/include/u-boot
Marek Behún 59981e6a3d 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).

Signed-off-by: Marek Behun <marek.behun@nic.cz>

 create mode 100644 include/u-boot/variadic-macro.h
2017-10-02 21:52:16 -04:00
..
crc.h lib: Add CRC32-C 2017-10-02 20:31:25 -04:00
md5.h GCC47: Fix warning in md5.c 2012-04-29 14:14:08 +02:00
rsa-checksum.h rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
rsa-mod-exp.h Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
rsa.h Kconfig: Move CONFIG_FIT and related options to Kconfig 2016-03-14 19:18:07 -04:00
sha1.h rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
sha256.h rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
u-boot.lds.h start a linker script helper file 2009-08-23 22:33:33 +02:00
variadic-macro.h include: Add a variadic macro to call a callback for all arguments 2017-10-02 21:52:16 -04:00
zlib.h lib/zlib: sparse fixes 2012-11-04 11:00:36 -07:00