From: mquinson Date: Fri, 20 Nov 2009 11:50:05 +0000 (+0000) Subject: In supernovae mode, declare every public functions as [potentially] inline X-Git-Tag: SVN~870 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0ebc1d233ac5a823ad107364e15ec84991aaf424 In supernovae mode, declare every public functions as [potentially] inline git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6847 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 8b408b5ac2..4a9836e4f9 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -155,7 +155,13 @@ # define XBT_IMPORT_NO_EXPORT(type) __declspec(dllimport) type # define XBT_PUBLIC_DATA(type) __declspec(dllimport) type -/* UNIX build. Let's keep sain here ;) */ +/* UNIX build. If compiling in supernovae, try to inline everything */ +#elif defined(SUPERNOVAE_MODE) +# define XBT_PUBLIC(type) inline type +# define XBT_EXPORT_NO_IMPORT(type) type +# define XBT_IMPORT_NO_EXPORT(type) type +# define XBT_PUBLIC_DATA(type) extern type +/* UNIX sain build... */ #else # define XBT_PUBLIC(type) extern type # define XBT_EXPORT_NO_IMPORT(type) type