IDA C++ SDK 9.2
|
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) |
Thread safe functions that deal with error codes.
idaman THREAD_SAFE const char *ida_export qstrerror | ( | error_t | _qerrno | ) |
Get error description string.
if _qerrno=-1, get_qerrno() will be used
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.
code | errno or GetLastError() depending on the system. |
idaman const char *ida_export qerrstr | ( | int | errno_code = -1 | ) |
Get error string.
if errno_code == -1, then errno will be used.
|
inline |
See set_qerrno()