Macros
cppzmq/tests/testutil.hpp File Reference
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
Include dependency graph for cppzmq/tests/testutil.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHECK_THROWS_ZMQ_ERROR(ecode, expr)
 

Macro Definition Documentation

◆ CHECK_THROWS_ZMQ_ERROR

#define CHECK_THROWS_ZMQ_ERROR (   ecode,
  expr 
)
Value:
do { \
try { \
expr; \
CHECK(false); \
} \
catch (const zmq::error_t &ze) { \
INFO(std::string("Unexpected error code: ") + ze.what()); \
CHECK(ze.num() == ecode); \
} \
catch (const std::exception &ex) { \
INFO(std::string("Unexpected exception: ") + ex.what()); \
CHECK(false); \
} \
catch (...) { \
CHECK(false); \
} \
} while (false)

Definition at line 37 of file cppzmq/tests/testutil.hpp.

string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
zmq::error_t::num
int num() const ZMQ_NOTHROW
Definition: zmq.hpp:299
zmq::error_t::what
virtual const char * what() const ZMQ_NOTHROW ZMQ_OVERRIDE
Definition: zmq.hpp:295
zmq::error_t
Definition: zmq.hpp:290


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04