Boost logo

Boost :

Subject: Re: [boost] [Preprocessor] Adding variadic macros support
From: Wolf Lammen (ookami1_at_[hidden])
Date: 2010-11-30 04:11:57


I use the C++ plugin for Eclipse to single-step through a macro evaluation. You can do this without compiling first, just while editing your source files and adding or modifying macro definitions. Very convenient, at least as long as you stick to a C++ standard.
It also gives you an idea of the complexity of an expansion by counting the replacement steps.


Wolf Lammen

-------- Original-Nachricht --------
> Datum: Mon, 29 Nov 2010 15:17:43 -0500
> Von: Edward Diener <eldiener_at_[hidden]>
> An: boost_at_[hidden]
> Betreff: Re: [boost] [Preprocessor] Adding variadic macros support

> On 11/29/2010 10:52 AM, Hartmut Kaiser wrote:
> >
> >>> Whenever I have gotten error messages from incorrect macros, using
> >>> Boost PP, I just break down the macro from the inside as much as
> >>> possible, into test pieces, and turn on the compiler switch that gives
> >>> me proprocessed output.
> >>
> >> That does have to be done sometimes.
> >
> > Do you still remember the macro tracing facilities in Wave? It should be
> > usable for this kind of problems, really.
> Thanks for waking me up about this Wave facility. I will definitely use
> it when needed. I admit I am guilty at not looking at Wave and seeing
> what its functionality is, but I will do so now. I was aware of it in
> general, as having the ability to allow the end-user to programatically
> intercept the elements of a preprocessed file, but I had not
> specifically lloked at its functionality to see how I might use it for
> myself.
> _______________________________________________
> Unsubscribe & other changes:

GRATIS! Movie-FLAT mit über 300 Videos. 
Jetzt freischalten unter

Boost list run by bdawes at, gregod at, cpdaniel at, john at