git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@320
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
*
* Set the data associated with the current process.
*/
-void *gras_userdata_set(void *ud);
+void gras_userdata_set(void *ud);
/**
* gras_userdata_new:
* 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