Re: Problem with commas in macro parameters

2005-11-06 Thread Ralf Wildenhues
* Dmitry Yu. Bolkhovityanov wrote on Sun, Nov 06, 2005 at 07:21:56AM CET: > > That's probably an old problem, but I haven't found any notion of > it in GCC docs. So... It's one better discussed on the gcc-help mailing list. > #define V(value) = value > This works fine, until I tr

Problem with commas in macro parameters

2005-11-05 Thread Dmitry Yu. Bolkhovityanov
Hello! That's probably an old problem, but I haven't found any notion of it in GCC docs. So... I need to have a macro which takes ONE argument, and either ignores it or outputs a "=arg": #ifdef __SOMEFILE_C #define D #define V(value) = value #else #define D extern #define