![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|

Go to the source code of this file.
Macros | |
| #define | CLOUDVIEWER_FIX_MSVC_(...) __VA_ARGS__ |
| #define | CLOUDVIEWER_CONCAT_IMPL_(s1, s2) s1##s2 |
| #define | CLOUDVIEWER_CONCAT(s1, s2) CLOUDVIEWER_CONCAT_IMPL_(s1, s2) |
| #define | CLOUDVIEWER_STRINGIFY_IMPL_(s) #s |
| #define | CLOUDVIEWER_STRINGIFY(s) CLOUDVIEWER_STRINGIFY_IMPL_(s) |
| #define | CLOUDVIEWER_GET_NTH_ARG_(...) CLOUDVIEWER_FIX_MSVC_(CLOUDVIEWER_GET_NTH_ARG_IMPL_(__VA_ARGS__)) |
| #define | CLOUDVIEWER_GET_NTH_ARG_IMPL_(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, N, ...) N |
| #define | CLOUDVIEWER_REVERSE_NUM_SEQUENCE_() 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 |
| #define | CLOUDVIEWER_NUM_ARGS(...) CLOUDVIEWER_GET_NTH_ARG_(__VA_ARGS__, CLOUDVIEWER_REVERSE_NUM_SEQUENCE_()) |
| #define | CLOUDVIEWER_OVERLOAD(func, ...) CLOUDVIEWER_CONCAT(func, CLOUDVIEWER_NUM_ARGS(__VA_ARGS__)) |
| #define CLOUDVIEWER_CONCAT | ( | s1, | |
| s2 | |||
| ) | CLOUDVIEWER_CONCAT_IMPL_(s1, s2) |
Definition at line 26 of file Preprocessor.h.
| #define CLOUDVIEWER_CONCAT_IMPL_ | ( | s1, | |
| s2 | |||
| ) | s1##s2 |
Concatenates the expanded expressions s1 and s2.
Definition at line 25 of file Preprocessor.h.
| #define CLOUDVIEWER_FIX_MSVC_ | ( | ... | ) | __VA_ARGS__ |
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.
Definition at line 20 of file Preprocessor.h.
| #define CLOUDVIEWER_GET_NTH_ARG_ | ( | ... | ) | CLOUDVIEWER_FIX_MSVC_(CLOUDVIEWER_GET_NTH_ARG_IMPL_(__VA_ARGS__)) |
Returns the number of supplied arguments.
Note: Only works for 1-10 arguments.
Definition at line 39 of file Preprocessor.h.
| #define CLOUDVIEWER_GET_NTH_ARG_IMPL_ | ( | arg1, | |
| arg2, | |||
| arg3, | |||
| arg4, | |||
| arg5, | |||
| arg6, | |||
| arg7, | |||
| arg8, | |||
| arg9, | |||
| arg10, | |||
| N, | |||
| ... | |||
| ) | N |
Definition at line 41 of file Preprocessor.h.
| #define CLOUDVIEWER_NUM_ARGS | ( | ... | ) | CLOUDVIEWER_GET_NTH_ARG_(__VA_ARGS__, CLOUDVIEWER_REVERSE_NUM_SEQUENCE_()) |
Definition at line 45 of file Preprocessor.h.
| #define CLOUDVIEWER_OVERLOAD | ( | func, | |
| ... | |||
| ) | CLOUDVIEWER_CONCAT(func, CLOUDVIEWER_NUM_ARGS(__VA_ARGS__)) |
CLOUDVIEWER_OVERLOAD(func, ...)
Overloads the enumerated macros func1, func2, etc. based on the number of additional arguments.
Example:
Definition at line 65 of file Preprocessor.h.
| #define CLOUDVIEWER_REVERSE_NUM_SEQUENCE_ | ( | ) | 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 |
Definition at line 44 of file Preprocessor.h.
| #define CLOUDVIEWER_STRINGIFY | ( | s | ) | CLOUDVIEWER_STRINGIFY_IMPL_(s) |
Definition at line 32 of file Preprocessor.h.
| #define CLOUDVIEWER_STRINGIFY_IMPL_ | ( | s | ) | #s |
Converts the expanded expression s to a string.
Definition at line 31 of file Preprocessor.h.