Files
u-boot/include
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
..
2017-07-03 17:35:28 -04:00
2016-12-03 13:21:21 -05:00
2017-02-08 15:56:28 -05:00
2017-06-05 11:02:29 -04:00
2017-09-16 14:57:44 +08:00
2017-09-12 17:57:59 -04:00
2017-09-15 05:27:47 -06:00
2016-10-19 09:01:51 +02:00
2017-08-16 08:22:18 -04:00
2017-05-11 22:21:27 -04:00
2017-07-28 23:34:39 +02:00
2017-04-13 09:41:10 -04:00
2017-08-17 16:59:55 +09:00
2017-05-15 20:32:12 +02:00
2017-09-20 11:08:01 +02:00
2017-09-20 11:00:57 +02:00
2016-11-14 23:24:03 +01:00
2017-08-16 08:30:24 -04:00
2017-06-02 10:16:46 -06:00
2017-09-15 09:03:11 -04:00
2016-12-08 10:36:22 -06:00
2017-09-03 15:30:35 -04:00
2017-07-23 09:24:47 -04:00
2017-06-12 08:37:55 -04:00
2017-04-14 19:38:57 -06:00
2017-07-11 22:41:54 -04:00
2017-07-28 12:02:47 -06:00
2017-09-20 10:20:00 +02:00
2017-09-20 10:20:00 +02:00
2017-06-12 08:37:55 -04:00
2017-07-03 17:35:28 -04:00
2017-07-28 23:34:07 +02:00
2017-04-10 10:02:03 +08:00
2017-08-17 16:59:55 +09:00
2017-08-23 10:41:58 +02:00
2017-08-16 08:22:18 -04:00
2017-06-01 07:03:16 -06:00
2016-09-26 13:24:43 -04:00
2017-04-12 13:28:27 -04:00
2017-10-01 16:32:51 +02:00
2017-08-24 11:00:47 +08:00
2016-10-23 18:33:48 -04:00