openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_GetLastErrorFileLine()

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.

When an error occurs in a HiTLS interface, the user obtains an error code, file name, and line number. The obtained information is deleted from the error stack. The interface can be called continuously. The error code returned each time forms the error stack of the interface 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.