From 75712367c115500bf24b13396c36926df1ed1556 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 18 Mar 2015 22:49:09 -0400 Subject: [PATCH] update names --- include/benchmark/benchmark_api.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/benchmark/benchmark_api.h b/include/benchmark/benchmark_api.h index 979d32c5..340ef6f8 100644 --- a/include/benchmark/benchmark_api.h +++ b/include/benchmark/benchmark_api.h @@ -431,14 +431,14 @@ class Benchmark { #endif // Helpers for generating unique variable names -#define BENCHMARK_PRIVATE_CONCAT(n) \ - BENCHMARK_PRIVATE_CONCAT2(_benchmark_, BENCHMARK_PRIVATE_UNIQUE_ID, n) -#define BENCHMARK_PRIVATE_CONCAT2(a, b, c) BENCHMARK_PRIVATE_CONCAT3(a, b, c) -#define BENCHMARK_PRIVATE_CONCAT3(a, b, c) a##b##c +#define BENCHMARK_PRIVATE_NAME(n) \ + BENCHMARK_PRIVATE_CONCAT(_benchmark_, BENCHMARK_PRIVATE_UNIQUE_ID, n) +#define BENCHMARK_PRIVATE_CONCAT(a, b, c) BENCHMARK_PRIVATE_CONCAT2(a, b, c) +#define BENCHMARK_PRIVATE_CONCAT2(a, b, c) a##b##c #define BENCHMARK_PRIVATE_DECLARE(n) \ static ::benchmark::internal::Benchmark* \ - BENCHMARK_PRIVATE_CONCAT(n) BENCHMARK_UNUSED + BENCHMARK_PRIVATE_NAME(n) BENCHMARK_UNUSED #define BENCHMARK(n) \ BENCHMARK_PRIVATE_DECLARE(n) = (new ::benchmark::internal::Benchmark(#n, n))