From: Peter Soetens (peter.soetens_at_[hidden])
Date: 2007-09-27 08:34:42


Hi,

Is it possible to include a different file based on the contents of a macro
using the preprocessor library ?
For example:

#define MY_HEADER_NAME "thename"
// ...

#define THE_HEADER_PATH SOME_PP_MACRO("subdir/", MY_HEADER_NAME, ".h")

#include THE_HEADER_PATH // expands to "subdir/thename.h"

Thanks in advance !
Peter

-- 
Peter Soetens -- FMTC -- <http://www.fmtc.be>