From 15b38042b4845b8739ce0f5d11e1c8ce8dd4ae78 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 10 May 2005 15:05:35 +0000 Subject: [PATCH 1/1] The RL vs SG choice is done by the function implementation choice (library choice). No need to specifically check whether we're on RL or SG git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1270 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/gras/emul.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/gras/emul.h b/include/gras/emul.h index 6d9b6d13d5..4d8eb83eaa 100644 --- a/include/gras/emul.h +++ b/include/gras/emul.h @@ -147,24 +147,24 @@ int gras_bench_once_end(void); */ /** \brief Start benchmarking this code block \hideinitializer */ -#define GRAS_BENCH_ALWAYS_BEGIN() do { if(gras_if_SG()) gras_bench_always_begin(__FILE__, __LINE__); } while(0) +#define GRAS_BENCH_ALWAYS_BEGIN() gras_bench_always_begin(__FILE__, __LINE__) /** \brief Stop benchmarking this code block \hideinitializer */ -#define GRAS_BENCH_ALWAYS_END() do { if(gras_if_SG()) gras_bench_always_end(); } while(0) +#define GRAS_BENCH_ALWAYS_END() gras_bench_always_end() /** \brief Start benchmarking this code block if it has never been benchmarked, run it in any case * \hideinitializer */ -#define GRAS_BENCH_ONCE_RUN_ALWAYS_BEGIN() do { if(gras_if_SG()) gras_bench_once_begin(__FILE__, __LINE__); } while(0) +#define GRAS_BENCH_ONCE_RUN_ALWAYS_BEGIN() gras_bench_once_begin(__FILE__, __LINE__) /** \brief Stop benchmarking this part of the code \hideinitializer */ -#define GRAS_BENCH_ONCE_RUN_ALWAYS_END() do { if(gras_if_SG()) gras_bench_once_end(); } while(0) +#define GRAS_BENCH_ONCE_RUN_ALWAYS_END() gras_bench_once_end() /** \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_if_SG()&&(gras_bench_once_begin(__FILE__, __LINE__)))||(gras_if_RL())) { +#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_RUN_ALWAYS_END(); +#define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end() /** @} */ END_DECL() -- 2.20.1