[Doxygen-users] Question about Preprocessing
Brought to you by:
dimitri
|
From: Zhen Y. <zy...@le...> - 2001-07-20 23:21:44
|
In the doxygen configuration file: if ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO doxygen will do partially preprocessing. it evaluates conditional compilation statements (like #if) and evaluates macro definitions, but it does not perform macro expansion. As in the following example: #define VERSION 200 #define CONST_STRING const char * #if VERSION >= 200 static CONST_STRING version = "2.xx"; #else static CONST_STRING version = "1.xx"; #endif The result will be: #define VERSION #define CONST_STRING static CONST_STRING version = "2.xx"; QUESTION: Is thers any way doxygen can show both case, in both "if" section and "else" section? Set MACRO_EXPANSION to YES only show the case in "else" section. Thank you. Zhen |