qpid/sys/windows/check.h File Reference

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Defines
qpid/sys/windows/check.h File Reference
`#include "qpid/Exception.h"`
`#include "qpid/Msg.h"`
`#include "qpid/sys/StrError.h"`

Go to the source code of this file.

## Defines
#define | QPID_WINDOWS_ERROR(ERRVAL) qpid::Exception(QPID_MSG(qpid::sys::strError(ERRVAL)))
#define | QPID_WINDOWS_CRT_ERROR(ERRNO) qpid::Exception(QPID_MSG(qpid::sys::strError(ERRNO)))
#define | QPID_WINDOWS_CHECK_NULL(RESULT) if ((RESULT) == NULL) throw QPID_WINDOWS_ERROR((::GetLastError()))
| THROW QPID_WINDOWS_ERROR(::GetLastError()) if RESULT is NULL.
#define | QPID_WINDOWS_CHECK_NOT(RESULT, VAL) if ((RESULT) == (VAL)) throw QPID_WINDOWS_ERROR((::GetLastError()))
#define | QPID_WINDOWS_CHECK_ASYNC_START(STATUS)
#define | QPID_WINDOWS_CHECK_CRT_NZ(VAL) if ((VAL) == 0) throw QPID_WINDOWS_CRT_ERROR(errno)
#define | QPID_WINSOCK_CHECK(OP) if ((OP) == SOCKET_ERROR) throw QPID_WINDOWS_ERROR((::WSAGetLastError()))

## Define Documentation

#define QPID_WINDOWS_CHECK_ASYNC_START | ( |  | STATUS | ) |

Value:

    if (!(STATUS) && ::WSAGetLastError() != ERROR_IO_PENDING)  \
            throw QPID_WINDOWS_ERROR((::WSAGetLastError()))

Definition at line 39 of file check.h.

#define QPID_WINDOWS_CHECK_CRT_NZ | ( |  | VAL | ) | if ((VAL) == 0) throw QPID_WINDOWS_CRT_ERROR(errno)

Definition at line 43 of file check.h.

#define QPID_WINDOWS_CHECK_NOT | ( |  | RESULT,
|  |  | VAL
| ) |  | if ((RESULT) == (VAL)) throw QPID_WINDOWS_ERROR((::GetLastError()))

Definition at line 36 of file check.h.

#define QPID_WINDOWS_CHECK_NULL | ( |  | RESULT | ) | if ((RESULT) == NULL) throw QPID_WINDOWS_ERROR((::GetLastError()))

THROW QPID_WINDOWS_ERROR(::GetLastError()) if RESULT is NULL.

Definition at line 33 of file check.h.

#define QPID_WINDOWS_CRT_ERROR | ( |  | ERRNO | ) | qpid::Exception(QPID_MSG(qpid::sys::strError(ERRNO)))

Definition at line 30 of file check.h.

#define QPID_WINDOWS_ERROR | ( |  | ERRVAL | ) | qpid::Exception(QPID_MSG(qpid::sys::strError(ERRVAL)))

Definition at line 29 of file check.h.

#define QPID_WINSOCK_CHECK | ( |  | OP | ) | if ((OP) == SOCKET_ERROR) throw QPID_WINDOWS_ERROR((::WSAGetLastError()))

Definition at line 46 of file check.h.