c++ - Is there a way to make C macros keyword agnostic? -


is there way concatenate keywords in macro , get
c behave in more dynamic fashion in:

#define macro(fun,ction,var,iable) function(variable) 

i know kind of thing exists in other languages.

you can use ## concatinate names in macros

fun##ction ...


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -