/****************************************************************************/
/* Manipulating User Data */
/****************************************************************************/
/** \addtogroup GRAS_globals
/****************************************************************************/
/* Manipulating User Data */
/****************************************************************************/
/** \addtogroup GRAS_globals
*
* In GRAS, using globals is forbidden since the "processes" will
* sometimes run as a thread inside the same process (namely, in
*
* In GRAS, using globals is forbidden since the "processes" will
* sometimes run as a thread inside the same process (namely, in
*
* Use the \ref gras_userdata_new macro to create a new user data (or malloc it
* and use \ref gras_userdata_set yourself), and \ref gras_userdata_get to
*
* Use the \ref gras_userdata_new macro to create a new user data (or malloc it
* and use \ref gras_userdata_set yourself), and \ref gras_userdata_get to
/** \brief Malloc and set the data associated with the current process. */
#define gras_userdata_new(type) (gras_userdata_set(xbt_new0(type,1)),gras_userdata_get())
/** \brief Malloc and set the data associated with the current process. */
#define gras_userdata_new(type) (gras_userdata_set(xbt_new0(type,1)),gras_userdata_get())