macros.hpp
Go to the documentation of this file.
1 
2 /******************************************************************************/
3 /* 0MQ Internal Use */
4 /******************************************************************************/
5 
6 #define LIBZMQ_UNUSED(object) (void) object
7 #define LIBZMQ_DELETE(p_object) \
8  { \
9  delete p_object; \
10  p_object = 0; \
11  }
12 
13 /******************************************************************************/
14 
15 #if !defined ZMQ_NOEXCEPT
16 #if defined ZMQ_HAVE_NOEXCEPT
17 #define ZMQ_NOEXCEPT noexcept
18 #else
19 #define ZMQ_NOEXCEPT
20 #endif
21 #endif
22 
23 #if !defined ZMQ_OVERRIDE
24 #if defined ZMQ_HAVE_NOEXCEPT
25 #define ZMQ_OVERRIDE override
26 #else
27 #define ZMQ_OVERRIDE
28 #endif
29 #endif
30 
31 #if !defined ZMQ_FINAL
32 #if defined ZMQ_HAVE_NOEXCEPT
33 #define ZMQ_FINAL final
34 #else
35 #define ZMQ_FINAL
36 #endif
37 #endif
38 
39 #if !defined ZMQ_DEFAULT
40 #if defined ZMQ_HAVE_NOEXCEPT
41 #define ZMQ_DEFAULT = default;
42 #else
43 #define ZMQ_DEFAULT \
44  { \
45  }
46 #endif
47 #endif
48 
49 #if !defined ZMQ_NON_COPYABLE_NOR_MOVABLE
50 #if defined ZMQ_HAVE_NOEXCEPT
51 #define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname) \
52  public: \
53  classname (const classname &) = delete; \
54  classname &operator= (const classname &) = delete; \
55  classname (classname &&) = delete; \
56  classname &operator= (classname &&) = delete;
57 #else
58 #define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname) \
59  private: \
60  classname (const classname &); \
61  classname &operator= (const classname &);
62 #endif
63 #endif


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:55