diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-01 22:22:39 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-01 22:30:06 +0200 |
commit | e99db77a6e73996d33d7108f8336938dd57037a7 (patch) | |
tree | 2f99a0274e3fba8e767843b7500247de4cec3a11 /src/bench/bench.h | |
parent | 12f5028d4957bce3ba176e80527894b497c04a3b (diff) |
Drop boost/preprocessor dependencies
Diffstat (limited to 'src/bench/bench.h')
-rw-r--r-- | src/bench/bench.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bench/bench.h b/src/bench/bench.h index bafc7f8716..22f06d8cb8 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -5,6 +5,8 @@ #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H +#include <util/macros.h> + #include <chrono> #include <functional> #include <map> @@ -12,8 +14,6 @@ #include <vector> #include <bench/nanobench.h> -#include <boost/preprocessor/cat.hpp> -#include <boost/preprocessor/stringize.hpp> /* * Usage: @@ -56,8 +56,8 @@ public: static void RunAll(const Args& args); }; } -// BENCHMARK(foo) expands to: benchmark::BenchRunner bench_11foo("foo"); +// BENCHMARK(foo) expands to: benchmark::BenchRunner bench_11foo("foo", foo); #define BENCHMARK(n) \ - benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n); + benchmark::BenchRunner PASTE2(bench_, PASTE2(__LINE__, n))(STRINGIZE(n), n); #endif // BITCOIN_BENCH_BENCH_H |