X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/717a002520be19ebeca1d096aa67c3175d15a3ba..79f4c4c467150b3bea841b968cabd629e9d9282a:/include/simgrid/plugins/energy.h diff --git a/include/simgrid/plugins/energy.h b/include/simgrid/plugins/energy.h index c8ad3489de..7b088181a9 100644 --- a/include/simgrid/plugins/energy.h +++ b/include/simgrid/plugins/energy.h @@ -27,9 +27,9 @@ XBT_PUBLIC int sg_link_energy_is_inited(); #define MSG_host_energy_plugin_init() sg_host_energy_plugin_init() #define MSG_host_get_consumed_energy(host) sg_host_get_consumed_energy(host) -#define MSG_host_get_wattmin_at(host,pstate) sg_host_get_wattmin_at(host,pstate) -#define MSG_host_get_wattmax_at(host,pstate) sg_host_get_wattmax_at(host,pstate) -#define MSG_host_get_power_range_slope_at(host,pstate) sg_host_get_power_range_slope_at(host,pstate) +#define MSG_host_get_wattmin_at(host,pstate) sg_host_get_wattmin_at((host), (pstate)) +#define MSG_host_get_wattmax_at(host,pstate) sg_host_get_wattmax_at((host), (pstate)) +#define MSG_host_get_power_range_slope_at(host,pstate) sg_host_get_power_range_slope_at((host), (pstate)) #define MSG_host_get_current_consumption(host) sg_host_get_current_consumption(host) SG_END_DECL()