summaryrefslogtreecommitdiff
path: root/cmd/cramfs.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2017-09-03 15:00:25 (GMT)
committerTom Rini <trini@konsulko.com>2017-10-03 01:52:16 (GMT)
commit59981e6a3d6074bf5413c1875a95325a4b8c01ca (patch)
tree903d018e94ba446ab36dbdf93db2836f6dfa29f7 /cmd/cramfs.c
parent5994e8b6432d1c6df1cad44771f02054dba893ff (diff)
downloadu-boot-59981e6a3d6074bf5413c1875a95325a4b8c01ca.tar.xz
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
Diffstat (limited to 'cmd/cramfs.c')
0 files changed, 0 insertions, 0 deletions