This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Problem with macro params containing commas


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]