Go to the source code of this file.
|
| #define | OPEN3D_FIX_MSVC_(...) |
| #define | OPEN3D_CONCAT_IMPL_(s1, s2) |
| #define | OPEN3D_CONCAT(s1, s2) |
| #define | OPEN3D_STRINGIFY_IMPL_(s) |
| #define | OPEN3D_STRINGIFY(s) |
| #define | OPEN3D_GET_NTH_ARG_(...) |
| #define | OPEN3D_GET_NTH_ARG_IMPL_(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, N, ...) |
| #define | OPEN3D_REVERSE_NUM_SEQUENCE_() |
| #define | OPEN3D_NUM_ARGS(...) |
| #define | OPEN3D_OVERLOAD(func, ...) |
◆ OPEN3D_CONCAT
| #define OPEN3D_CONCAT |
( |
| s1, |
|
|
| s2 ) |
Value:
#define OPEN3D_CONCAT_IMPL_(s1, s2)
Definition Preprocessor.h:25
◆ OPEN3D_CONCAT_IMPL_
| #define OPEN3D_CONCAT_IMPL_ |
( |
| s1, |
|
|
| s2 ) |
◆ OPEN3D_FIX_MSVC_
| #define OPEN3D_FIX_MSVC_ |
( |
| ... | ) |
|
Value:OPEN3D_FIX_MSVC_(...)
Internal helper function which defers the evaluation of the enclosed expression.
Use this macro only to workaround non-compliant behaviour of the MSVC preprocessor.
Note: Could be dropped in the future if the compile flag /Zc:preprocessor can be applied.
◆ OPEN3D_GET_NTH_ARG_
| #define OPEN3D_GET_NTH_ARG_ |
( |
| ... | ) |
|
Value:
#define OPEN3D_GET_NTH_ARG_IMPL_(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, N,...)
Definition Preprocessor.h:41
#define OPEN3D_FIX_MSVC_(...)
Definition Preprocessor.h:20
OPEN3D_NUM_ARGS(...)
Returns the number of supplied arguments.
Note: Only works for 1-10 arguments.
◆ OPEN3D_GET_NTH_ARG_IMPL_
| #define OPEN3D_GET_NTH_ARG_IMPL_ |
( |
| arg1, |
|
|
| arg2, |
|
|
| arg3, |
|
|
| arg4, |
|
|
| arg5, |
|
|
| arg6, |
|
|
| arg7, |
|
|
| arg8, |
|
|
| arg9, |
|
|
| arg10, |
|
|
| N, |
|
|
| ... ) |
◆ OPEN3D_NUM_ARGS
| #define OPEN3D_NUM_ARGS |
( |
| ... | ) |
|
Value:
#define OPEN3D_REVERSE_NUM_SEQUENCE_()
Definition Preprocessor.h:44
#define OPEN3D_GET_NTH_ARG_(...)
Definition Preprocessor.h:39
◆ OPEN3D_OVERLOAD
| #define OPEN3D_OVERLOAD |
( |
| func, |
|
|
| ... ) |
Value:
#define OPEN3D_CONCAT(s1, s2)
Definition Preprocessor.h:26
#define OPEN3D_NUM_ARGS(...)
Definition Preprocessor.h:45
OPEN3D_OVERLOAD(func, ...)
Overloads the enumerated macros func1, func2, etc. based on the number of additional arguments.
Example:
#define FOO_1(x1) foo(x1)
#define FOO_2(x1, x2) bar(x1, x2)
#define FOO(...) '\'
FOO(1) -> foo(1)
FOO(2, 3) -> bar(2, 3)
#define OPEN3D_OVERLOAD(func,...)
Definition Preprocessor.h:64
◆ OPEN3D_REVERSE_NUM_SEQUENCE_
| #define OPEN3D_REVERSE_NUM_SEQUENCE_ |
( |
| ) |
|
Value:10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
◆ OPEN3D_STRINGIFY
| #define OPEN3D_STRINGIFY |
( |
| s | ) |
|
Value:
#define OPEN3D_STRINGIFY_IMPL_(s)
Definition Preprocessor.h:31
◆ OPEN3D_STRINGIFY_IMPL_
| #define OPEN3D_STRINGIFY_IMPL_ |
( |
| s | ) |
|