X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/494616a1d79ab04ce6f0309a5cbb29ee5876c379..1c4ef1f90201923b4cd81d2d41623b3d59267d4c:/include/gras/emul.h diff --git a/include/gras/emul.h b/include/gras/emul.h index a1835095ed..7b3865d5d7 100644 --- a/include/gras/emul.h +++ b/include/gras/emul.h @@ -2,7 +2,7 @@ /* gras/emul.h - public interface to emulation support */ /* (specific parts for SG or RL) */ - + /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,10 +11,9 @@ #ifndef GRAS_COND_H #define GRAS_COND_H -#include "xbt/misc.h" /* SG_BEGIN_DECL */ +#include "xbt/misc.h" /* SG_BEGIN_DECL */ SG_BEGIN_DECL() - /** @addtogroup GRAS_emul * @brief Code execution "emulation" and "virtualization". * @@ -44,19 +43,18 @@ SG_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 @@ -161,13 +159,11 @@ int gras_bench_once_end(void); /** \brief Start benchmarking this code block if it has never been benchmarked, ignore it if it was \hideinitializer */ -#define GRAS_BENCH_ONCE_RUN_ONCE_BEGIN() if (gras_bench_once_begin(__FILE__, __LINE__)) { +#define GRAS_BENCH_ONCE_RUN_ONCE_BEGIN() if (gras_bench_once_begin(__FILE__, __LINE__)) { /** \brief Stop benchmarking this part of the code \hideinitializer */ #define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end() /** @} */ SG_END_DECL() - #endif /* GRAS_COND_H */ -