 |
Open3D (C++ API)
0.15.1
|
Go to the documentation of this file.
39 #define OPEN3D_FIX_MSVC_(...) __VA_ARGS__
44 #define OPEN3D_CONCAT_IMPL_(s1, s2) s1##s2
45 #define OPEN3D_CONCAT(s1, s2) OPEN3D_CONCAT_IMPL_(s1, s2)
50 #define OPEN3D_STRINGIFY_IMPL_(s) #s
51 #define OPEN3D_STRINGIFY(s) OPEN3D_STRINGIFY_IMPL_(s)
58 #define OPEN3D_GET_NTH_ARG_(...) \
59 OPEN3D_FIX_MSVC_(OPEN3D_GET_NTH_ARG_IMPL_(__VA_ARGS__))
60 #define OPEN3D_GET_NTH_ARG_IMPL_(arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
61 arg8, arg9, arg10, N, ...) \
63 #define OPEN3D_REVERSE_NUM_SEQUENCE_() 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
64 #define OPEN3D_NUM_ARGS(...) \
65 OPEN3D_GET_NTH_ARG_(__VA_ARGS__, OPEN3D_REVERSE_NUM_SEQUENCE_())
83 #define OPEN3D_OVERLOAD(func, ...) \
84 OPEN3D_CONCAT(func, OPEN3D_NUM_ARGS(__VA_ARGS__))