Apart from the PREDEFINED configuration option, where I could always put DOXYGEN=1, does doxygen predefine any preprocessor macros prior to reading C++ files?
My train of thought is that GCC predefines macros such as __GNUC__开发者_StackOverflow社区, and MSC predefines macros such as _MSC_VER. Does doxygen predefine macros at all, such as _DOXYGEN_VER?
I don't want to use the PREDEFINED configuration option at all.
No, Doxygen does not predefine any self-identifying tokens.
If you don't want to litter your code with preprocessor #ifdef _DOXYGEN_VER / #endif blocks you can use the \cond command. The \cond command is an easier way to define sections that may be conditionally included/excluded similar to what you used to have to do with the C preprocessor tokens.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论