C preprocessor at run time?
Posted
by drigoSkalWalker
on Stack Overflow
See other posts from Stack Overflow
or by drigoSkalWalker
Published on 2010-03-23T20:01:15Z
Indexed on
2010/03/23
20:03 UTC
Read the original article
Hit count: 240
Hi guys, I want to do a Token concatenation, but I want to do this with the content of a variable, not its name. like this.
#define call_function(fun, member) fun##_##number ()
while (i < 10 ) { call_function(fun, i); }
but I give fun_number (), I want to give fun_1, fun_2, and so on...
how to do it?
Thanks in advance!!!
© Stack Overflow or respective owner