diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-13 00:46:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-13 00:46:50 +0200 |
commit | 5a50dba2c0832c58593e6aa88dd2144f64f0c544 (patch) | |
tree | d0467a2b3a5b05143e578899341946e8d28e1a91 /liberror.h | |
parent | Fix makefile (diff) | |
download | liberror-5a50dba2c0832c58593e6aa88dd2144f64f0c544.tar.gz liberror-5a50dba2c0832c58593e6aa88dd2144f64f0c544.tar.bz2 liberror-5a50dba2c0832c58593e6aa88dd2144f64f0c544.tar.xz |
Enable prefetching backtace
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | liberror.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -180,6 +180,24 @@ void liberror_reset_error(void); void liberror_print_backtrace(struct liberror_error *, FILE *, const char *); /** + * Get backtrace and save backtrace + * + * This function will never change `errno` + * + * Note: this library does not actually save + * a backtrace, `-lerror-backtrace` is needed + * for that functionallity (it will replace + * some things in this library, so no other + * action is required) + * + * @param error The error the backtrace shall be stored in, + * if `NULL`, the backtrafe is saved for the + * next error in the thread + * @return 0 on success, -1 on failure + */ +int liberror_save_backtrace(struct liberror_error *); + +/** * Set the current error for the thread * * If the thread already has an error saved, |