MessagePack for C++
Macros
sub.hpp File Reference
#include <msgpack/preprocessor/arithmetic/dec.hpp>
#include <msgpack/preprocessor/config/config.hpp>
#include <msgpack/preprocessor/control/while.hpp>
#include <msgpack/preprocessor/tuple/elem.hpp>

Go to the source code of this file.

Macros

#define MSGPACK_PP_SUB(x, y)   MSGPACK_PP_SUB_I(x, y)
 
#define MSGPACK_PP_SUB_I(x, y)   MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE(MSGPACK_PP_SUB_P, MSGPACK_PP_SUB_O, (x, y)))
 
#define MSGPACK_PP_SUB_P(d, xy)   MSGPACK_PP_TUPLE_ELEM(2, 1, xy)
 
#define MSGPACK_PP_SUB_O(d, xy)   MSGPACK_PP_SUB_O_I(MSGPACK_PP_TUPLE_ELEM(2, 0, xy), MSGPACK_PP_TUPLE_ELEM(2, 1, xy))
 
#define MSGPACK_PP_SUB_O_I(x, y)   (MSGPACK_PP_DEC(x), MSGPACK_PP_DEC(y))
 
#define MSGPACK_PP_SUB_D(d, x, y)   MSGPACK_PP_SUB_D_I(d, x, y)
 
#define MSGPACK_PP_SUB_D_I(d, x, y)   MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_SUB_P, MSGPACK_PP_SUB_O, (x, y)))
 

Macro Definition Documentation

◆ MSGPACK_PP_SUB

#define MSGPACK_PP_SUB (   x,
 
)    MSGPACK_PP_SUB_I(x, y)

◆ MSGPACK_PP_SUB_D

#define MSGPACK_PP_SUB_D (   d,
  x,
 
)    MSGPACK_PP_SUB_D_I(d, x, y)

◆ MSGPACK_PP_SUB_D_I

#define MSGPACK_PP_SUB_D_I (   d,
  x,
 
)    MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_SUB_P, MSGPACK_PP_SUB_O, (x, y)))

◆ MSGPACK_PP_SUB_I

#define MSGPACK_PP_SUB_I (   x,
 
)    MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE(MSGPACK_PP_SUB_P, MSGPACK_PP_SUB_O, (x, y)))

◆ MSGPACK_PP_SUB_O

#define MSGPACK_PP_SUB_O (   d,
  xy 
)    MSGPACK_PP_SUB_O_I(MSGPACK_PP_TUPLE_ELEM(2, 0, xy), MSGPACK_PP_TUPLE_ELEM(2, 1, xy))

◆ MSGPACK_PP_SUB_O_I

#define MSGPACK_PP_SUB_O_I (   x,
 
)    (MSGPACK_PP_DEC(x), MSGPACK_PP_DEC(y))

◆ MSGPACK_PP_SUB_P

#define MSGPACK_PP_SUB_P (   d,
  xy 
)    MSGPACK_PP_TUPLE_ELEM(2, 1, xy)