This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi, I'd like to pass params that contains commas to a macro. But the macro processor think that the passed param is 2 parts (separated by the inner macro). It's normal, but not what I want... Is there a way to do it differently? Thanks -jec
#define MACRO_PARAM_1 <class First,class Second> #define MACRO_PARAM_2 Fn_Pair<First,Second>
FN_DEFINE_TEMPLATE_CLASS_METHODS( MACRO_PARAM_1, MACRO_PARAM_2, Fn_Kind, Fn_Pair_CLASS_ID );
several ways to do this * varadic macros supported in C99, and gnu C (in slightly different ways) * a parenthesized list of additional parms - depends on what you want to do with them * #define _ , #define macro(parm) whatever
-- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC The voices in my head said this was stupid too nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |