SimGrid  3.21
Versatile Simulation of Distributed Systems
sysdep.h File Reference
#include <xbt/asserts.h>
#include <xbt/log.h>
#include <xbt/misc.h>
#include <simgrid/config.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>

Macros

#define xbt_die(...)
 Kill the program with an error message. More...
 
#define xbt_free(p)
 like free More...
 
#define xbt_new(type, count)   ((type*)xbt_malloc (sizeof (type) * (count)))
 
#define xbt_new0(type, count)
 like calloc, but xbt_die() on error More...
 

Functions

void xbt_abort (void)
 Kill the program in silence. More...
 
 XBT_LOG_EXTERNAL_CATEGORY (xbt)
 
static char * xbt_strdup (const char *s)
 Like strdup, but xbt_die() on error. More...
 
void xbt_backtrace_display_current ()
 
static void * xbt_malloc (size_t n)
 Like malloc, but xbt_die() on error. More...
 
static void * xbt_malloc0 (size_t n)
 like malloc, but xbt_die() on error and memset data to 0 More...
 
static void * xbt_realloc (void *p, size_t s)
 like realloc, but xbt_die() on error More...
 
void xbt_free_f (void *p)
 like free, but you can be sure that it is a function More...
 
void xbt_free_ref (void *d)
 should be given a pointer to pointer, and frees the second one More...
 

Function Documentation

◆ XBT_LOG_EXTERNAL_CATEGORY()

XBT_LOG_EXTERNAL_CATEGORY ( xbt  )