
27 Sep
2007
27 Sep
'07
12:34 p.m.
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