Hej Guys
I have problem to make some macros to my own project I want to make some
Macro which it can make a several list automatically as example:
Pseudo code:
#define A 0x01
#define B 0x02
#define C 0x04
Etc..
#define ENABEL_A 1
#define ENABEL_B 0
#define ENABEL _C 2
etc…
If (ENABEL_A == 1 ) ADD_TO_LIST_1(A );
else ADD_TO_LIST_2(A );
etc…
result shud bee
LIST_1 {A,B,C,D}
LIST_2 {B,C,D,F}
LIST_3 {E,F,D,G} etc….
And when I call another macro RUN_TRUE_LIST_1
It should runs true each list and call a function like:
Calling(A);
calling(B);
calling (C); etc.
So first a macro to make my lists
Second a macro to runs trues those lists. Please help me.
I have problem to make some macros to my own project I want to make some
Macro which it can make a several list automatically as example:
Pseudo code:
#define A 0x01
#define B 0x02
#define C 0x04
Etc..
#define ENABEL_A 1
#define ENABEL_B 0
#define ENABEL _C 2
etc…
If (ENABEL_A == 1 ) ADD_TO_LIST_1(A );
else ADD_TO_LIST_2(A );
etc…
result shud bee
LIST_1 {A,B,C,D}
LIST_2 {B,C,D,F}
LIST_3 {E,F,D,G} etc….
And when I call another macro RUN_TRUE_LIST_1
It should runs true each list and call a function like:
Calling(A);
calling(B);
calling (C); etc.
So first a macro to make my lists
Second a macro to runs trues those lists. Please help me.
Comment