cppx-core
cppx-core
meta-macro
macro-n_arguments.hpp
Go to the documentation of this file.
1
#pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2
9
#include <
cppx-core/meta-macro/macro-invoke_macro.hpp
>
10
11
#ifndef CPPX_NO_DOLLARS_PLEASE
12
# define $n_arguments CPPX_N_ARGUMENTS
13
#endif
14
26
27
#define CPPX_N_ARGUMENTS( ... ) \
28
CPPX_INVOKE_MACRO( \
29
CPPX_ARGUMENT_64, \
30
( \
31
__VA_ARGS__, \
32
63, 62, 61, 60, \
33
59, 58, 57, 56, 55, 54, 53, 52, 51, 50, \
34
49, 48, 47, 46, 45, 44, 43, 42, 41, 40, \
35
39, 38, 37, 36, 35, 34, 33, 32, 31, 30, \
36
29, 28, 27, 26, 25, 24, 23, 22, 21, 20, \
37
19, 18, 17, 16, 15, 14, 13, 12, 11, 10, \
38
9, 8, 7, 6, 5, 4, 3, 2, 1, 0 \
39
) \
40
)
41
43
#define CPPX_ARGUMENT_64( \
44
a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, \
45
a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, \
46
a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, \
47
a31, a32, a33, a34, a35, a36, a37, a38, a39, a40, \
48
a41, a42, a43, a44, a45, a46, a47, a48, a49, a50, \
49
a51, a52, a53, a54, a55, a56, a57, a58, a59, a60, \
50
a61, a62, a63, a64, ... ) \
51
a64
52
macro-invoke_macro.hpp
Mostly this is a concession to the idiosyncracies of Visual C++, which still as of its 2017 version i...
Generated by
1.8.15