MessagePack for C++
Macros
max.hpp File Reference
#include <msgpack/preprocessor/comparison/less_equal.hpp>
#include <msgpack/preprocessor/config/config.hpp>
#include <msgpack/preprocessor/control/iif.hpp>

Go to the source code of this file.

Macros

#define MSGPACK_PP_MAX(x, y)   MSGPACK_PP_MAX_I(x, y)
 
#define MSGPACK_PP_MAX_I(x, y)   MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL(x, y), y, x)
 
#define MSGPACK_PP_MAX_D(d, x, y)   MSGPACK_PP_MAX_D_I(d, x, y)
 
#define MSGPACK_PP_MAX_D_I(d, x, y)   MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL_D(d, x, y), y, x)
 

Macro Definition Documentation

◆ MSGPACK_PP_MAX

#define MSGPACK_PP_MAX (   x,
 
)    MSGPACK_PP_MAX_I(x, y)

◆ MSGPACK_PP_MAX_D

#define MSGPACK_PP_MAX_D (   d,
  x,
 
)    MSGPACK_PP_MAX_D_I(d, x, y)

◆ MSGPACK_PP_MAX_D_I

#define MSGPACK_PP_MAX_D_I (   d,
  x,
 
)    MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL_D(d, x, y), y, x)

◆ MSGPACK_PP_MAX_I

#define MSGPACK_PP_MAX_I (   x,
 
)    MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL(x, y), y, x)