SimGrid 3.6.2
Scalable simulation of distributed systems
Defines | Functions
Malloc and friends
Grounding features

Malloc and associated functions, killing the program on error (with Exception support) More...

Defines

#define xbt_new(type, count)
 like calloc, but xbt_die() on error and don't memset to 0
#define xbt_new0(type, count)
 like calloc, but xbt_die() on error

Functions

static __attribute__ ((always_inline)) char *xbt_strdup(const char *s)
 Like strdup, but xbt_die() on error.
void xbt_backtrace_display_current (void)
 show the backtrace of the current point (lovely while debuging)
void xbt_free_ref (void *d)
 should be given a pointer to pointer, and frees the second one

Detailed Description

Malloc and associated functions, killing the program on error (with Exception support)


Function Documentation

static __attribute__ ( (always_inline)  ) const [inline, static]

Like strdup, but xbt_die() on error.

like realloc, but xbt_die() on error

like malloc, but xbt_die() on error and memset data to 0

Like malloc, but xbt_die() on error.

void xbt_backtrace_display_current ( void  )

show the backtrace of the current point (lovely while debuging)

Shows a backtrace of the current location.


Back to the main Simgrid Documentation page The version of Simgrid documented here is v3.6.2.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen