MessagePack for C++
Macros
min.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_MIN(x, y)   MSGPACK_PP_MIN_I(x, y)
 
#define MSGPACK_PP_MIN_I(x, y)   MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL(y, x), y, x)
 
#define MSGPACK_PP_MIN_D(d, x, y)   MSGPACK_PP_MIN_D_I(d, x, y)
 
#define MSGPACK_PP_MIN_D_I(d, x, y)   MSGPACK_PP_IIF(MSGPACK_PP_LESS_EQUAL_D(d, y, x), y, x)
 

Macro Definition Documentation

◆ MSGPACK_PP_MIN

#define MSGPACK_PP_MIN (   x,
 
)    MSGPACK_PP_MIN_I(x, y)

◆ MSGPACK_PP_MIN_D

#define MSGPACK_PP_MIN_D (   d,
  x,
 
)    MSGPACK_PP_MIN_D_I(d, x, y)

◆ MSGPACK_PP_MIN_D_I

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

◆ MSGPACK_PP_MIN_I

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