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

Go to the source code of this file.

Macros

#define MSGPACK_PP_IIF(bit, t, f)   MSGPACK_PP_IIF_OO((bit, t, f))
 
#define MSGPACK_PP_IIF_OO(par)   MSGPACK_PP_IIF_I ## par
 
#define MSGPACK_PP_IIF_I(bit, t, f)   MSGPACK_PP_IIF_II(MSGPACK_PP_IIF_ ## bit(t, f))
 
#define MSGPACK_PP_IIF_II(id)   id
 
#define MSGPACK_PP_IIF_0(t, f)   f
 
#define MSGPACK_PP_IIF_1(t, f)   t
 

Macro Definition Documentation

#define MSGPACK_PP_IIF (   bit,
  t,
 
)    MSGPACK_PP_IIF_OO((bit, t, f))
#define MSGPACK_PP_IIF_0 (   t,
 
)    f
#define MSGPACK_PP_IIF_1 (   t,
 
)    t
#define MSGPACK_PP_IIF_I (   bit,
  t,
 
)    MSGPACK_PP_IIF_II(MSGPACK_PP_IIF_ ## bit(t, f))
#define MSGPACK_PP_IIF_II (   id)    id
#define MSGPACK_PP_IIF_OO (   par)    MSGPACK_PP_IIF_I ## par