X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15b38042b4845b8739ce0f5d11e1c8ce8dd4ae78..6d0e473f94be76c5d74554817adbc79f57aef669:/include/gras/emul.h diff --git a/include/gras/emul.h b/include/gras/emul.h index 4d8eb83eaa..99b04f0a03 100644 --- a/include/gras/emul.h +++ b/include/gras/emul.h @@ -11,10 +11,9 @@ #ifndef GRAS_COND_H #define GRAS_COND_H -#include "xbt/misc.h" /* BEGIN_DECL */ - -BEGIN_DECL() +#include "xbt/misc.h" /* SG_BEGIN_DECL */ +SG_BEGIN_DECL() /** @addtogroup GRAS_emul * @brief Code execution "emulation" and "virtualization". * @@ -46,17 +45,17 @@ BEGIN_DECL() */ /** \brief Returns true only if the program runs on real life */ -int gras_if_RL(void); +XBT_PUBLIC(int) gras_if_RL(void); /** \brief Returns true only if the program runs within the simulator */ -int gras_if_SG(void); +XBT_PUBLIC(int) gras_if_SG(void); /** @} */ -int gras_bench_always_begin(const char *location, int line); -int gras_bench_always_end(void); -int gras_bench_once_begin(const char *location, int line); -int gras_bench_once_end(void); +XBT_PUBLIC(int) gras_bench_always_begin(const char *location, int line); +XBT_PUBLIC(int) gras_bench_always_end(void); +XBT_PUBLIC(int) gras_bench_once_begin(const char *location, int line); +XBT_PUBLIC(int) gras_bench_once_end(void); /** @addtogroup GRAS_emul * \section GRAS_emul_timing Emulation @@ -167,7 +166,7 @@ int gras_bench_once_end(void); #define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end() /** @} */ -END_DECL() +SG_END_DECL() #endif /* GRAS_COND_H */