openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_PeekErrorFileLine()

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.

When an error occurs on a HiTLS interface, the user obtains an error code, file name, and line number. The obtained information is not deleted from the error stack.

Attention
If either of the two parameters is null, the file name and line number cannot be obtained.
Parameters
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.
Return values
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.