16#ifndef TOOLBOX_BM_BENCHMARK_HPP
17#define TOOLBOX_BM_BENCHMARK_HPP
35#define TOOLBOX_BENCHMARK(NAME) \
36 namespace benchmark::NAME { \
37 void fn(::toolbox::bm::Context& ctx); \
38 ::toolbox::bm::Benchmark bm{#NAME, fn}; \
40 void benchmark::NAME::fn(toolbox::bm::Context& ctx)
42#define TOOLBOX_BENCHMARK_MAIN \
43 int main(int argc, char* argv[]) \
45 return toolbox::bm::detail::main(argc, argv); \