Add error enum

This commit is contained in:
Patrick Lipka 2025-08-07 15:44:52 +02:00
parent b7d7350bd3
commit 57bc0cec52
1 changed files with 10 additions and 1 deletions

View File

@ -21,7 +21,16 @@ extern "C"{
#define MAX_NAME_LEN 64
// error enum
typedef enum {
RVPROF_SUCCESS = 0,
RVPROF_ERROR_MEMORY = -1,
RVPROF_ERROR_IO = -2,
RVPROF_ERROR_SYMBOLS = -3,
RVPROF_ERROR_INVALID_STATE = -4,
RVPROF_ERROR_STACK_OVERFLOW = -5,
RVPROF_ERROR_STACK_UNDERFLOW = -6
} rvprof_error_t
#ifdef __cplusplus