Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
In supernovae mode, declare every public functions as [potentially] inline
[simgrid.git] / 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
 
-/* 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