From 0ebc1d233ac5a823ad107364e15ec84991aaf424 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 20 Nov 2009 11:50:05 +0000 Subject: [PATCH] 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 --- include/xbt/misc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.20.1