Skip to content

Instantly share code, notes, and snippets.

@SuperV1234 SuperV1234/meh.cpp
Created Sep 16, 2014

Embed
What would you like to do?
#define SSVU_IMPL_SINK_MN(mIT) SSVPP_TPL_ELEM(mIT, 0)
#define SSVU_IMPL_SINK_PN(mIT) SSVPP_TPL_ELEM(mIT, 1)
#define SSVU_IMPL_SINK_P_CR(mIT) const decltype(SSVU_IMPL_SINK_MN(mIT))& SSVU_IMPL_SINK_PN(mIT)
#define SSVU_IMPL_SINK_P_RV(mIT) decltype(SSVU_IMPL_SINK_MN(mIT))&& SSVU_IMPL_SINK_PN(mIT)
#define SSVU_IMPL_SINK_P_INIT(mIT) SSVU_IMPL_SINK_MN(mIT){SSVU_IMPL_SINK_PN(mIT)}
#define SSVU_DEFINE_SINK_CTOR_1(mClassName, mCode, m0) \
inline mClassName(SSVU_IMPL_SINK_P_CR(m0)) : SSVU_IMPL_SINK_P_INIT(m0) mCode \
inline mClassName(SSVU_IMPL_SINK_P_RV(m0)) : SSVU_IMPL_SINK_P_INIT(m0) mCode
#define SSVU_DEFINE_SINK_CTOR_2(mClassName, mCode, m0, m1)
#define SSVU_DEFINE_SINK_CTOR_IMPL(mClassName, mCode, mTpl) SSVPP_CAT(SSVU_DEFINE_SINK_CTOR_, SSVPP_ARGCOUNT(SSVPP_TPL_EXPLODE(mTpl))) (mClassName, mCode, SSVPP_TPL_EXPLODE(mTpl))
#define SSVU_DEFINE_SINK_CTOR(mClassName, mCode, mTpl) SSVU_DEFINE_SINK_CTOR_IMPL(mClassName, mCode, mTpl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.