Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7090: Provide an option to parse only preprocessor directives
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-21 15:00:48
#7090: Provide an option to parse only preprocessor directives
----------------------------------+-----------------------------------------
Reporter: scrawl123@⦠| Owner: hkaiser
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: wave
Version: Boost 1.49.0 | Severity: Optimization
Resolution: wontfix | Keywords:
----------------------------------+-----------------------------------------
Comment (by hkaiser):
Replying to [comment:9 scrawl <scrawl123@â¦>]:
> Discovered an issue with mcpp, the #line directives are not GLSL
compliant; then i looked at glcpp from mesa, but there it doesn't emit
#line directives at all. I don't feel like hacking with a horrible bulk of
C-code, so I guess I'm back to using boost::wave.
Cool.
> From what I can tell, in order to disable threading, I should add the
files libs/wave/*.cpp to my project,
Yes.
> and modify the includes to use my own wave_config.hpp instead of the one
from the boost sources? Is that correct?
There is no need to modify the sources. If you look at `wave_config.hpp`
you'll see that all configuration constants (such as threading) are
handled as
{{{
#if !defined(BOOST_WAVE_SUPPORT_THREADING)
#if defined(BOOST_HAS_THREADS)
#define BOOST_WAVE_SUPPORT_THREADING 1
#else
#define BOOST_WAVE_SUPPORT_THREADING 0
#endif
#endif
}}}
Thus all you have to do is to pass `-DBOOST_WAVE_SUPPORT_THREADING=0` on
the commandline while compiling.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7090#comment:10> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC