IDA C++ SDK 9.2
Loading...
Searching...
No Matches
err.h File Reference

Thread safe functions that deal with error codes. More...

Go to the source code of this file.

Functions

idaman THREAD_SAFE const char *ida_export qstrerror (error_t _qerrno)
 Get error description string.
idaman THREAD_SAFE char *ida_export get_errdesc (const char *header, error_t _qerrno=-1)
 A convenience function to generate error messages (returns "header: error message")
idaman THREAD_SAFE char *ida_export winerr (int code)
 Get error message for MS Windows error codes.
idaman const char *ida_export qerrstr (int errno_code=-1)
 Get error string.
 vqperror (format, va)
THREAD_SAFE void set_errno (int code)
 See set_qerrno()

File I/O

The following functions work just like their counterparts from Clib, only they are safer, system independent, and they set qerrno (see get_qerrno()).

idaman THREAD_SAFE va_list va
 See qsscanf()
idaman THREAD_SAFE AS_PRINTF (1, 0) void ida_export vqperror(const char *format
 Print error message to stderr (analog of perror)
THREAD_SAFE AS_PRINTF (1, 2) inline void qperror(const char *format
 See vqperror()
THREAD_SAFE va_start (va, format)
 va_end (va)

Detailed Description

Thread safe functions that deal with error codes.

Function Documentation

◆ qstrerror()

idaman THREAD_SAFE const char *ida_export qstrerror ( error_t _qerrno)

Get error description string.

if _qerrno=-1, get_qerrno() will be used

◆ get_errdesc()

idaman THREAD_SAFE char *ida_export get_errdesc ( const char * header,
error_t _qerrno = -1 )

A convenience function to generate error messages (returns "header: error message")

◆ winerr()

idaman THREAD_SAFE char *ida_export winerr ( int code)

Get error message for MS Windows error codes.

Parameters
codeerrno or GetLastError() depending on the system.

◆ qerrstr()

idaman const char *ida_export qerrstr ( int errno_code = -1)

Get error string.

if errno_code == -1, then errno will be used.

◆ vqperror()

vqperror ( format ,
va  )

◆ set_errno()

THREAD_SAFE void set_errno ( int code)
inline