Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the code so that it compiles in supernovae mode
[simgrid.git] / include / xbt / misc.h
index 42173ad..8b408b5 100644 (file)
 #  define _XBT_CALL
 #endif
 
+/* Support for SuperNovae compilation mode, where we stuff every source file
+ *  into the same compilation unit to help GCC inlining what should be.
+ * To go further on this, the internal getters/setters are then marked
+ *  "static inline", while they are regular symbols otherwise.
+ */
+#ifdef SUPERNOVAE_MODE
+# define SUPERNOVAE_INLINE static inline
+#else
+# define SUPERNOVAE_INLINE
+#endif
+
 /* Handle import/export stuff
  * 
  * Rational of XBT_PUBLIC: