3 ms·
I also don't think a C preprocessor is at all confusing, it's quite a simple program, both to write and to program. Including less used features such as concate
by ekr 11y ago
I also don't think a C preprocessor is at all confusing, it's quite a simple program, both to write and to program. Including less used features such as concatenation or stringification.
- bjz_ 11y agoI think it's more that it can be confusing for the reader.
- pmelendez 11y agoThis is what you have to do to concatenate a string with another macro: #define VARIABLE 3 #define NAME2(fun,suffix) fun ## _ ## suffix #define NAME1(fun,suffix) NAME2(fun,suffix) #define NAME(fun) NAME1(fun,VARIABLE) int NAME(some_function)(int a); From:http://stackoverflow.com/questions/1489932/how-to-concatenate-twice-with-the-c-preprocessor-and-expand-a-macro-as-in-arg http://stackoverflow.com/questions/1489932/how-to-concatenat... C preprocessor can be confusing at times.