My Kernel v0.1.0

These macros allow to map another macro or function onto a list of arguments. More...

Collaboration diagram for Mapping:

Macros

#define MAP(f, ...)   EVAL(MAP1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0))
 Applies the function macro f to each of the remaining parameters.
 
#define MAP_LIST(f, ...)    EVAL(MAP_LIST1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0))
 Applies the function macro f to each of the remaining parameters and inserts commas between the results.
 

Detailed Description

This is done at compile time, and will only generate the corresponding code for each call, not performing any loop.