Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-29 15:47:35


Hugo Duncan <hugoduncan_at_[hidden]> writes:

>> #include <iostream>
>> #include <fstream>
>> #include <vector>
>> #include <string>
>> #include <map>
>> #include <cstdlib>
>> #include <sstream>
>
>> You can simply make a source file that includes all the files that you want
>> to pre-preprocess (if that is what your getting at), run it through your
>> compiler's preprocessor, and then include the result file.
>
> I don't think bjam supports just running the preprocessor, but as you say
> the poblem is more tricky; I would like to stop preprocessing at a certain
> include depth.

bjam doesn't support running the PP as part of the build process.
However, it is possible to build in "arbitrary" parsing rules for
processing includes. You could train it to recognize these BOOST_PP_
constructs.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk