44#define BSL_ERR_NEW_MODULE 0x80
47 BSL_ERR_LIB_CRYPTO = 1,
54#define BSL_ERR_GET_LIB(err) ((err) >> 24)
340typedef void (*
BSL_ERR_OutputFunc)(uint64_t threadId,
const char *file, uint32_t lineNo, int32_t errCode,
bool mark);
void BSL_ERR_RemoveErrorStack(bool isRemoveAll)
Delete the error stack
void BSL_ERR_RemoveErrStringBatch(void)
Delete the error description
void BSL_ERR_DeInit(void)
Error code module deinitialization.
int32_t BSL_ERR_GetErrAll(const char **file, uint32_t *lineNo, const char **desc)
Obtain the error description string based on the error code.
int32_t BSL_ERR_GetErrorFileLine(const char **file, uint32_t *lineNo)
Obtain the error code, file name, and line number of the earliest push message in the error stack.
void BSL_ERR_OutputErrorStack(void)
Print all error information in the current error stack.
int32_t BSL_ERR_Init(void)
Initialize Error code module.
int32_t BSL_ERR_GetLastErrorFileLine(const char **file, uint32_t *lineNo)
Obtains the error code, file name, and line number of the last push message in the error stack.
int32_t BSL_ERR_PeekError(void)
Obtain the earliest push error code in the error stack.
int32_t BSL_ERR_SetMark(void)
Set the pop-up flag at the level of the current error stack.
void(* BSL_ERR_OutputFunc)(uint64_t threadId, const char *file, uint32_t lineNo, int32_t errCode, bool mark)
Err output callback function type.
定义 bsl_err.h:340
void BSL_ERR_ClearError(void)
Clear the error stack.
int32_t BSL_ERR_GetError(void)
Obtain the earliest push error code in the error stack.
int32_t BSL_ERR_PeekLastError(void)
Obtains the error code of the last push in the error stack.
int32_t BSL_ERR_PeekErrorFileLine(const char **file, uint32_t *lineNo)
Obtain the error code, file name, and line number of the earliest push message in the error stack.
void BSL_ERR_RegErrStackLog(const BSL_ERR_OutputFunc func)
Register a err output callback function with dual protection
int32_t BSL_ERR_AddErrStringBatch(const BSL_ERR_Desc *descList, uint32_t num)
Add an error description string to an error code.
const char * BSL_ERR_GetString(int32_t error)
Obtain the error description string based on the error code.
int32_t BSL_ERR_PopToMark(void)
Pop to the marked error stack level and clear the mark
int32_t BSL_ERR_ClearLastMark(void)
Clear the latest flag in the error stack.
int32_t BSL_ERR_PeekLastErrorFileLine(const char **file, uint32_t *lineNo)
Obtain the error code, file name, and line number of the last push message in the error stack.
int32_t BSL_ERR_GetLastError(void)
Obtains the error code of the last push in the error stack.
Add error description.
定义 bsl_err.h:228
int32_t error
定义 bsl_err.h:229
const char * string
定义 bsl_err.h:230