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
Post a Comment