Commit e96f068a by Eric Fiselier

rename BENCHMARK_PRIVATE_NAME to BENCHMARK_PRIVATE_CONCAT

parent 3bf0b251
...@@ -431,14 +431,14 @@ class Benchmark { ...@@ -431,14 +431,14 @@ class Benchmark {
#endif #endif
// Helpers for generating unique variable names // Helpers for generating unique variable names
#define BENCHMARK_PRIVATE_NAME(n) \ #define BENCHMARK_PRIVATE_CONCAT(n) \
BENCHMARK_PRIVATE_NAME2(_benchmark_, BENCHMARK_PRIVATE_UNIQUE_ID, n) BENCHMARK_PRIVATE_CONCAT2(_benchmark_, BENCHMARK_PRIVATE_UNIQUE_ID, n)
#define BENCHMARK_PRIVATE_NAME2(a, b, c) BENCHMARK_PRIVATE_NAME3(a, b, c) #define BENCHMARK_PRIVATE_CONCAT2(a, b, c) BENCHMARK_PRIVATE_CONCAT3(a, b, c)
#define BENCHMARK_PRIVATE_NAME3(a, b, c) a##b##c #define BENCHMARK_PRIVATE_CONCAT3(a, b, c) a##b##c
#define BENCHMARK_PRIVATE_DECLARE(n) \ #define BENCHMARK_PRIVATE_DECLARE(n) \
static ::benchmark::internal::Benchmark* \ static ::benchmark::internal::Benchmark* \
BENCHMARK_PRIVATE_NAME(n) BENCHMARK_UNUSED BENCHMARK_PRIVATE_CONCAT(n) BENCHMARK_UNUSED
#define BENCHMARK(n) \ #define BENCHMARK(n) \
BENCHMARK_PRIVATE_DECLARE(n) = (new ::benchmark::internal::Benchmark(#n, n)) BENCHMARK_PRIVATE_DECLARE(n) = (new ::benchmark::internal::Benchmark(#n, n))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment