+/**
+ Define a benchmark function requiring initialization and shutdown.
+
+ This macro is similar to BENCHMARK_FUNC() but ensures that @a init is
+ called before the benchmark is ran and @a done afterwards.
+ */
+#define BENCHMARK_FUNC_WITH_INIT(name, init, done) \
+ static bool name(); \
+ static Bench::Function wxMAKE_UNIQUE_NAME(name)(#name, name, init, done); \
+ bool name()
+