mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Drop boost/preprocessor dependencies
This commit is contained in:
parent
12f5028d49
commit
e99db77a6e
2 changed files with 4 additions and 6 deletions
|
@ -5,6 +5,8 @@
|
||||||
#ifndef BITCOIN_BENCH_BENCH_H
|
#ifndef BITCOIN_BENCH_BENCH_H
|
||||||
#define BITCOIN_BENCH_BENCH_H
|
#define BITCOIN_BENCH_BENCH_H
|
||||||
|
|
||||||
|
#include <util/macros.h>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -12,8 +14,6 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <bench/nanobench.h>
|
#include <bench/nanobench.h>
|
||||||
#include <boost/preprocessor/cat.hpp>
|
|
||||||
#include <boost/preprocessor/stringize.hpp>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Usage:
|
* Usage:
|
||||||
|
@ -56,8 +56,8 @@ public:
|
||||||
static void RunAll(const Args& args);
|
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) \
|
#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
|
#endif // BITCOIN_BENCH_BENCH_H
|
||||||
|
|
|
@ -60,8 +60,6 @@ EXPECTED_BOOST_INCLUDES=(
|
||||||
boost/multi_index/ordered_index.hpp
|
boost/multi_index/ordered_index.hpp
|
||||||
boost/multi_index/sequenced_index.hpp
|
boost/multi_index/sequenced_index.hpp
|
||||||
boost/multi_index_container.hpp
|
boost/multi_index_container.hpp
|
||||||
boost/preprocessor/cat.hpp
|
|
||||||
boost/preprocessor/stringize.hpp
|
|
||||||
boost/process.hpp
|
boost/process.hpp
|
||||||
boost/signals2/connection.hpp
|
boost/signals2/connection.hpp
|
||||||
boost/signals2/optional_last_value.hpp
|
boost/signals2/optional_last_value.hpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue