openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_GetErrorFileLine()

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.

The user calls this API after an error occurs on a HiTLS API to obtain an error code, file name, and line number. The obtained information will be deleted from the error stack. This API can be called continuously. The returned error code forms the error stack of the API until BSL_SUCCESS is returned.

注意
If either of the two parameters is null, the file name and line number cannot be obtained.
参数
file[OUT] Obtains the name of the file where the error occurs, excluding the directory path.
lineNo[OUT] Obtain the line number of the file where the error occurs.
返回值
Errorcode. The most significant 16 bits indicate the ID of the module where the error occurs, and the least significant 16 bits indicate the cause number.