Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-04-12 11:37:00


Tomas Puverle wrote:
> Tobias,
>
>> # define PLATFORM_HEADER_DIRECTORY() <mylib/win32/
>> // [...]
>> #define PLATFORM_HEADER(header) PLATFORM_HEADER_DIRECTORY()header>
>
> How about:
>
> #ifdef ...
> #define PLATFORM_DIRECTORY win32
> #elif
> ....
> #endif
>
> #define BOOST_INCLUDE(includeFile) <includeFile>
>
> #include BOOST_INCLUDE(PLATFORM_DIRECTORY/myFile.h)

How about:

#ifdef __WIN32__
#include <win32/myfile.hpp>
#elif ...
...
#endif

So that dependency analysis works with Boost.Build without yet more
special case kludges ;-) And so that people with smart text editors can
select the include file and open it directly. And so that other people
reading the code have a chance at understanding it.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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