X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2e4f7439b31d1a92f0ebb8f2082d3108a79e13cf..215ed67257173f5e26c9489ec96c4ced08d1614a:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 2c7c194f52..7d41431806 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -22,11 +22,16 @@ SG_BEGIN_DECL() /** @addtogroup XBT_syscall + * @brief Malloc and associated functions, killing the program on error (with \ref XBT_ex) + * + *
Top [\ref index]::[\ref XBT_API] + *
Prev + *
Next [\ref XBT_ex]
* @{ */ -#ifdef __GNUC__ -/** @brief like strdup, but xbt_die() on error */ +#if defined(__GNUC__) || defined(DOXYGEN) +/** @brief Like strdup, but xbt_die() on error */ static inline char *xbt_strdup(const char *s) { char *res = NULL; if (s) { @@ -36,7 +41,7 @@ static inline char *xbt_strdup(const char *s) { } return res; } -/** @brief like malloc, but xbt_die() on error +/** @brief Like malloc, but xbt_die() on error @hideinitializer */ static inline void *xbt_malloc(int n){ void *res=malloc(n);