X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1a66f9e48742a7a62c7278c42e3ddd83dfe5180a..07ce716b44d53a070fc2358ec727bb1975198200:/include/xbt/misc.h diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 42173adba4..8b408b5ac2 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -80,6 +80,17 @@ # 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: