From 5c761256265b1ec48d02c462212d1238ddc0d6e2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 19 Jun 2015 03:25:18 +0300 Subject: add call stacks to errors --- include/aesni/error.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/aesni') diff --git a/include/aesni/error.h b/include/aesni/error.h index 5aa2fb4..015b16d 100644 --- a/include/aesni/error.h +++ b/include/aesni/error.h @@ -72,6 +72,8 @@ static __inline int aesni_is_error(AesNI_StatusCode ec) */ const char* aesni_strerror(AesNI_StatusCode ec); +#define AESNI_MAX_CALL_STACK_LENGTH 32 + /** * \brief Stores error details: error code & possibly a few parameters. */ @@ -91,6 +93,9 @@ typedef struct struct { char what[128]; } not_implemented; } params; + + void* call_stack[AESNI_MAX_CALL_STACK_LENGTH]; + size_t call_stack_size; } AesNI_ErrorDetails; -- cgit v1.2.3