X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/037955e458fb05c8ad1a1bdc3509bac0664f87a2..1abb173bf353d2796fef41a227c3b3adcb6586d2:/include/xbt/ex.h diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 3d7228352b..6dacb0ff37 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -232,6 +232,7 @@ typedef struct { __ex_mctx_struct } __ex_mctx_t; typedef enum { unknown_error=0, /**< unknown error */ arg_error, /**< Invalid argument */ + bound_error, /**< Out of bounds argument */ mismatch_error, /**< The provided ID does not match */ not_found_error, /**< The searched element was not found */ @@ -504,8 +505,13 @@ extern void __xbt_ex_terminate_default(xbt_ex_t *e); /** @brief Exception destructor */ XBT_PUBLIC(void) xbt_ex_free(xbt_ex_t e); -XBT_PUBLIC(void) xbt_ex_display(xbt_ex_t *e); -XBT_PUBLIC(void) xbt_backtrace_display(void); +/** @brief Shows a backtrace of the current location */ +XBT_PUBLIC(void) xbt_backtrace_display_current(void); + +/** @brief Captures a backtrace for further use */ +XBT_PUBLIC(void) xbt_backtrace_current(xbt_ex_t *e); +/** @brief Display a previously captured backtrace */ +XBT_PUBLIC(void) xbt_backtrace_display(xbt_ex_t *e); /** @} */ #endif /* __XBT_EX_H__ */