From: mquinson Date: Thu, 2 Dec 2010 16:17:16 +0000 (+0000) Subject: Hello you stupid doxygen. Our inline functions are visible to the users, please don... X-Git-Tag: v3.6_beta2~1013 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f3f4e91d62fae3ee03ada94f69e194ea67f416d4 Hello you stupid doxygen. Our inline functions are visible to the users, please don't ignore them. Thanks. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8901 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 212ba11e6a..cefbc2f98a 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -45,7 +45,10 @@ # 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) @@ -55,12 +58,13 @@ # 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 */