Boost logo

Boost Users :

Subject: [Boost-users] [wave] Tracing a macro in a preprocessor directive
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-08-29 15:27:43


I was trying to trace the output of a macro within a preprocessor
directive in a file using the Wave trace facility. The directive is:

#elif BOOST_PP_ITERATION_FLAGS() == 1

so I specified:

#pragma wave trace(enable)
#elif BOOST_PP_ITERATION_FLAGS() == 1
#pragma wave trace(disable)

But wave's trace showed me an empty file where the macro output (
-tsomefile ) should have been.

Is there a way to capture the output of the BOOST_PP_ITERATION_FLAGS()
macro at the point where the #elif is occuring using Wave's trace facility ?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net