• Marek Behún's avatar
    include: Add a variadic macro to call a callback for all arguments · 59981e6a
    Marek Behún authored
    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: default avatarMarek Behun <marek.behun@nic.cz>
    
     create mode 100644 include/u-boot/variadic-macro.h
    59981e6a
Name
Last commit
Last update
..
crc.h Loading commit data...
md5.h Loading commit data...
rsa-checksum.h Loading commit data...
rsa-mod-exp.h Loading commit data...
rsa.h Loading commit data...
sha1.h Loading commit data...
sha256.h Loading commit data...
u-boot.lds.h Loading commit data...
variadic-macro.h Loading commit data...
zlib.h Loading commit data...