X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/61b165735072e666dc5cb922b0a21fd7e6576706..d9575bda5bd6f7ca02d89bf74ba28b81a5215628:/src/portable.h diff --git a/src/portable.h b/src/portable.h index 9a6acb37f6..3596f340c5 100644 --- a/src/portable.h +++ b/src/portable.h @@ -170,4 +170,17 @@ extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap); # define PRINTF_STR(a) (a)?:"(null)" #endif +/* + * What we need to extract the backtrace in exception handling code + */ +#ifdef HAVE_EXECINFO_H +# include +#endif + +/* + * Some debugging functions. Can't we find a better place for this?? + */ +void hexa_print(const char*name, unsigned char *data, int size); +const char *hexa_str(unsigned char *data, int size); + #endif /* GRAS_PORTABLE_H */