From c6d5acf604ecd9f9308e9a8a89b18372506aed76 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Wed, 21 May 2008 19:57:53 +0000 Subject: [PATCH] Added preprocessor predefs to the DoxyFile. This ensures neither 'struct' (in its explicit c-style meaning) nor the replacement 'C_STRUCT' appears in the documentation. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@24 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- doc/Doxyfile | 20 +++++++++----------- include/aiTypes.h | 6 +++++- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/doc/Doxyfile b/doc/Doxyfile index 1eaf96eca..f2b34cf82 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -1,4 +1,4 @@ -# Doxyfile 1.5.4 +# Doxyfile 1.5.3 #--------------------------------------------------------------------------- # Project related configuration options @@ -11,9 +11,9 @@ CREATE_SUBDIRS = YES OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES -ABBREVIATE_BRIEF = "The $name class " \ - "The $name widget " \ - "The $name file " \ +ABBREVIATE_BRIEF = "The $name class " \ + "The $name widget " \ + "The $name file " \ is \ provides \ specifies \ @@ -40,10 +40,8 @@ OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO BUILTIN_STL_SUPPORT = YES CPP_CLI_SUPPORT = NO -SIP_SUPPORT = NO DISTRIBUTE_GROUP_DOC = NO SUBGROUPING = YES -TYPEDEF_HIDES_STRUCT = NO #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- @@ -82,7 +80,7 @@ WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text " +WARN_FORMAT = "$file:$line: $text " WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files @@ -222,13 +220,13 @@ PERLMOD_MAKEVAR_PREFIX = # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = YES SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = -PREDEFINED = -EXPAND_AS_DEFINED = +PREDEFINED = ASSIMP_DOXYGEN_BUILD=1 +EXPAND_AS_DEFINED = C_STRUCT SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references diff --git a/include/aiTypes.h b/include/aiTypes.h index 674615e0e..31d7f47fe 100644 --- a/include/aiTypes.h +++ b/include/aiTypes.h @@ -61,7 +61,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. extern "C" { # define C_STRUCT #else -# define C_STRUCT struct +# if (defined ASSIMP_DOXYGEN_BUILD) +# define C_STRUCT +# else +# define C_STRUCT struct +# endif #endif /** Maximum dimension for strings, ASSIMP strings are zero terminated */