Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
In supernovae mode, declare every public functions as [potentially] inline
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 20 Nov 2009 11:50:05 +0000 (11:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 20 Nov 2009 11:50:05 +0000 (11:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6847 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/misc.h

index 8b408b5..4a9836e 100644 (file)
 #  define XBT_IMPORT_NO_EXPORT(type)   __declspec(dllimport) type
 #  define XBT_PUBLIC_DATA(type)                __declspec(dllimport) type
 
 #  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
 #else
 #  define XBT_PUBLIC(type)            extern type
 #  define XBT_EXPORT_NO_IMPORT(type)  type