Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 20, 2024
1 parent d745910 commit f3ddcd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/ylt/reflection/internal/args_count.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#define YLT_MARCO_EXPAND(...) __VA_ARGS__
#define YLT_MACRO_EXPAND(...) __VA_ARGS__

#define YLT_ARG_COUNT(...) \
YLT_MARCO_EXPAND(YLT_ARG_COUNT_IMPL( \
YLT_MACRO_EXPAND(YLT_ARG_COUNT_IMPL( \
0, ##__VA_ARGS__, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, \
113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, \
99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, \
Expand Down
7 changes: 0 additions & 7 deletions include/ylt/reflection/user_reflect_macro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ using member_value_type_t = typename member_traits<T>::value_type;
return (std::size_t)YLT_ARG_COUNT(__VA_ARGS__); \
}

// #define MAKE_ARRAY(STRUCT, ...) \
// MAKE_ARRAY_IMPL(STRUCT, YLT_ARG_COUNT(__VA_ARGS__), __VA_ARGS__)

// #define MAKE_ARRAY_IMPL(STRUCT, N, ...) \
// constexpr std::array<std::string_view, N> arr_##STRUCT_NAME = { \
// YLT_MARCO_EXPAND(YLT_CONCAT(CON_STR, N)(__VA_ARGS__))};

template <typename T, typename Tuple, typename Visitor>
inline constexpr auto visit_private_fields_impl(T &t, const Tuple &tp,
Visitor &&visitor) {
Expand Down

0 comments on commit f3ddcd3

Please sign in to comment.