This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Problem with macro params containing commas
- From: Phil Edwards <phil at jaj dot com>
- To: Jean-Eric Cuendet <jec at rptec dot ch>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 14 Aug 2003 12:28:11 -0400
- Subject: Re: Problem with macro params containing commas
- References: <1060877439.18179.388.camel@wks20.rptec.ch>
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