A
aravindh.k
Hi,
I want to define a macro that defines another on invocation. Somthing
like this:
#define MACRO_NR_1(FLAG, VALUE) #define MACRO_NR_1_##FLAG(VALUE)
(VALUE+FLAG)
So that when I call MACRO_NR_1(10), the macro MACRO_NR_1_10 gets
defined. The macro above does not work.
Do you know how I may do this ?
Sincerely,
Aravindh
I want to define a macro that defines another on invocation. Somthing
like this:
#define MACRO_NR_1(FLAG, VALUE) #define MACRO_NR_1_##FLAG(VALUE)
(VALUE+FLAG)
So that when I call MACRO_NR_1(10), the macro MACRO_NR_1_10 gets
defined. The macro above does not work.
Do you know how I may do this ?
Sincerely,
Aravindh