Problem with macro params containing commas
Phil Edwards
phil@jaj.com
Thu Aug 14 16:28:00 GMT 2003
On Thu, Aug 14, 2003 at 06:10:39PM +0200, Jean-Eric Cuendet wrote:
> I'd like to pass params that contains commas to a macro.
> But the macro 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?
This has nothing to do with the development of libstdc++, and is off-topic
for this list. You should investigate the rules of macros, such as adding
parentheses and possibly using C99 features, and if that fails, ask in an
appropriate forum, such as the comp.lang.c++.* newsgroups.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan
More information about the Libstdc++
mailing list