T
TJ
I'd like to know how the preprocessor treats curly braces, as compared
to how it treats parentheses.
What happens if I pass this:
{ a_function( arg1, arg2, arg3 ) }
as an argument to a function macro? Does it get passed in whole, or
split into smaller parts like so:
"{ a_function( arg1"
"arg2"
"arg3 ) }"
I tried it with gcc 4.0 and it seems that the curly braces group the
stream of tokens into one argument, just like parentheses do. However
I'd like to know if this is proper C89 behaviour, or just GCC.
Thanks.
TJ
to how it treats parentheses.
What happens if I pass this:
{ a_function( arg1, arg2, arg3 ) }
as an argument to a function macro? Does it get passed in whole, or
split into smaller parts like so:
"{ a_function( arg1"
"arg2"
"arg3 ) }"
I tried it with gcc 4.0 and it seems that the curly braces group the
stream of tokens into one argument, just like parentheses do. However
I'd like to know if this is proper C89 behaviour, or just GCC.
Thanks.
TJ