Skip to content

Commit 83d7057

Browse files
committed
[struct_pack] refact marco
1 parent 42bc182 commit 83d7057

26 files changed

+508
-2220
lines changed

.github/actions/coverage/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ runs:
9292
else
9393
report=ylt-cov-report
9494
fi
95-
llvm-cov show $(find . -maxdepth 1 -type f -executable | awk '{print "-object " $0}' | xargs) -instr-profile=test_ylt.profdata -format=html -output-dir=$report -ignore-filename-regex='thirdparty|src|template_switch|concurrentqueue|dragonbox_to_chars|dragonbox|expected|' -show-instantiations=false
95+
llvm-cov show $(find . -maxdepth 1 -type f -executable | awk '{print "-object " $0}' | xargs) -instr-profile=test_ylt.profdata -format=html -output-dir=$report -ignore-filename-regex='thirdparty|src|template_switch|concurrentqueue|dragonbox_to_chars|dragonbox|expected' -show-instantiations=false
9696
echo "path=build/output/tests/$report" >> $GITHUB_OUTPUT
9797
cov_data=$(grep -w '<pre>Totals</pre>' $report/index.html | awk -F 'Totals' '{print $NF}' | cut -d ')' -f 2 | awk -F '>' '{print $NF}' | awk -F '%' '{print $1}')
9898
echo "coverage data: $cov_data"

include/ylt/coro_rpc/impl/errno.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ struct rpc_error {
115115
const uint16_t& val() const { return *(uint16_t*)&(code.ec); }
116116
constexpr operator bool() const noexcept { return code; }
117117
};
118-
STRUCT_PACK_REFL(rpc_error, val(), msg);
118+
YLT_REFL(rpc_error, val(), msg);
119119

120120
}; // namespace coro_rpc
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#pragma once
22
#include "common_macro.hpp"
33

4+
#define YLT_MACRO_EXPAND(...) __VA_ARGS__
5+
46
#define WRAP_ARGS0(w, o)
57
#define WRAP_ARGS1(w, o, _1) w(o, _1)
68
#include "generate/arg_list_macro_gen.hpp"
79

810
#define WRAP_ARGS_(w, object, ...) \
911
YLT_CONCAT(WRAP_ARGS, YLT_ARG_COUNT(__VA_ARGS__)) \
1012
(w, object, ##__VA_ARGS__)
11-
#define WRAP_ARGS(w, object, ...) WRAP_ARGS_(w, object, ##__VA_ARGS__)
13+
#define WRAP_ARGS(w, object, ...) WRAP_ARGS_(w, object, ##__VA_ARGS__)

include/ylt/reflection/internal/args_count.hpp

-55
This file was deleted.

include/ylt/reflection/internal/common_macro.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
#include "args_count.hpp"
32
#define YLT_CONCAT_(l, r) l##r
43

54
#define YLT_CONCAT(l, r) YLT_CONCAT_(l, r)

0 commit comments

Comments
 (0)