Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hello you stupid doxygen. Our inline functions are visible to the users, please don...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 16:17:16 +0000 (16:17 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 16:17:16 +0000 (16:17 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8901 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/misc.h

index 212ba11..cefbc2f 100644 (file)
 # define _XBT_FUNCTION "function"
 #endif
 
 # define _XBT_FUNCTION "function"
 #endif
 
-#ifndef __cplusplus
+#ifdef DOXYGEN
+#  define XBT_INLINE
+#else
+#  ifndef __cplusplus
 #    if defined(__GNUC__) && ! defined(__STRICT_ANSI__)
 #        define XBT_INLINE inline
 #    elif (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
 #    if defined(__GNUC__) && ! defined(__STRICT_ANSI__)
 #        define XBT_INLINE inline
 #    elif (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
 #    else
 #        define XBT_INLINE
 #    endif
 #    else
 #        define XBT_INLINE
 #    endif
-#else
-#       if defined (__VISUALC__)
-#              define XBT_INLINE __inline
-#       else
-#      define XBT_INLINE  inline
-#       endif
+#  else
+#         if defined (__VISUALC__)
+#                 define XBT_INLINE __inline
+#         else
+#       define XBT_INLINE  inline
+#         endif
+#  endif /* __cplusplus */
 #endif
 
 /* improvable on gcc (by evaluating arguments only once), but wouldn't be portable */
 #endif
 
 /* improvable on gcc (by evaluating arguments only once), but wouldn't be portable */