2015-08-21 16:12:22 -07:00
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/* 0MQ Internal Use */
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
#define LIBZMQ_UNUSED(object) (void) object
|
|
|
|
#define LIBZMQ_DELETE(p_object) \
|
|
|
|
{ \
|
|
|
|
delete p_object; \
|
|
|
|
p_object = 0; \
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************/
|
2018-08-09 17:30:17 +02:00
|
|
|
|
|
|
|
#if !defined ZMQ_NOEXCEPT
|
|
|
|
#if defined ZMQ_HAVE_NOEXCEPT
|
|
|
|
#define ZMQ_NOEXCEPT noexcept
|
|
|
|
#else
|
|
|
|
#define ZMQ_NOEXCEPT
|
|
|
|
#endif
|
|
|
|
#endif
|
2019-12-08 19:22:04 +01:00
|
|
|
|
2019-12-24 10:39:26 +01:00
|
|
|
#if !defined ZMQ_OVERRIDE
|
|
|
|
#if defined ZMQ_HAVE_NOEXCEPT
|
|
|
|
#define ZMQ_OVERRIDE override
|
|
|
|
#else
|
|
|
|
#define ZMQ_OVERRIDE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined ZMQ_FINAL
|
|
|
|
#if defined ZMQ_HAVE_NOEXCEPT
|
|
|
|
#define ZMQ_FINAL final
|
|
|
|
#else
|
|
|
|
#define ZMQ_FINAL
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2019-12-08 19:22:04 +01:00
|
|
|
#if !defined ZMQ_DEFAULT
|
|
|
|
#if defined ZMQ_HAVE_NOEXCEPT
|
|
|
|
#define ZMQ_DEFAULT = default;
|
|
|
|
#else
|
|
|
|
#define ZMQ_DEFAULT \
|
|
|
|
{ \
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined ZMQ_NON_COPYABLE_NOR_MOVABLE
|
|
|
|
#if defined ZMQ_HAVE_NOEXCEPT
|
|
|
|
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname) \
|
|
|
|
public: \
|
|
|
|
classname (const classname &) = delete; \
|
|
|
|
classname &operator= (const classname &) = delete; \
|
|
|
|
classname (classname &&) = delete; \
|
|
|
|
classname &operator= (classname &&) = delete;
|
|
|
|
#else
|
|
|
|
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname) \
|
|
|
|
private: \
|
|
|
|
classname (const classname &); \
|
|
|
|
classname &operator= (const classname &);
|
|
|
|
#endif
|
|
|
|
#endif
|