X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da99ac3b126cc796417327a77216af98a39be762..12db01eef510f93c84230ba3301c53508fdade57:/include/gras/process.h diff --git a/include/gras/process.h b/include/gras/process.h index 76c2659805..5b528a4abf 100644 --- a/include/gras/process.h +++ b/include/gras/process.h @@ -69,7 +69,7 @@ void *gras_userdata_get(void); * * Set the data associated with the current process. */ -void *gras_userdata_set(void *ud); +void gras_userdata_set(void *ud); /** * gras_userdata_new: @@ -77,7 +77,7 @@ void *gras_userdata_set(void *ud); * Malloc and set the data associated with the current process. */ -#define gras_userdata_new(type) gras_userdata_set(malloc(sizeof(type))) +#define gras_userdata_new(type) (gras_userdata_set(malloc(sizeof(type))),gras_userdata_get()) END_DECL