cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
Loading...
Searching...
No Matches
count_arguments_macro.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
22/*
23 * This header is automatically generated from count_arguments_macro.h.jinja.
24 * Do not edit this file directly.
25 */
26
28
33#define INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL_GET_COUNT( \
34 _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, N, ...) \
35 N
36
41#define INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL_NUMBERS() \
42 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
43
48#define INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL(...) \
49 INTERNAL_MSGPACK_LIGHT_INVOKE_MACRO( \
50 INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL_GET_COUNT, (__VA_ARGS__))
51
57#define INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS(...) \
58 INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL( \
59 __VA_ARGS__, INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS_IMPL_NUMBERS())
Definition of INTERNAL_MSGPACK_LIGHT_INVOKE_MACRO macro.