From b282a065f161812a0797e954edc419784a69630e Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Wed, 9 Jun 2021 18:44:39 -0600 Subject: Docs: Add preprocessor define for doxygen Doxygen by default leaves out any functions inside #ifdef blocks that it thinks are disabled. This change adds a DOXYGEN symbol, so you can still get the functions included in the documentation even if the #ifdef would have normally excluded them. before #if defined(_WIN32) after #if defined(_WIN32) || defined(DOXYGEN) Patch provided by Campbell Barton on chat. --- doc/doxygen/Doxyfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/doxygen/Doxyfile b/doc/doxygen/Doxyfile index 201d2208486..97bd85aae11 100644 --- a/doc/doxygen/Doxyfile +++ b/doc/doxygen/Doxyfile @@ -2126,7 +2126,8 @@ INCLUDE_FILE_PATTERNS = # recursively expanded use the := operator instead of the = operator. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -PREDEFINED = BUILD_DATE +PREDEFINED = BUILD_DATE \ + "DOXYGEN=1" # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this # tag can be used to specify a list of macro names that should be expanded. The -- cgit v1.2.3