blob: 55d362558c5218435fe849d8e322e76edd2ce120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef BANDIT_REGISTRAR_H
#define BANDIT_REGISTRAR_H
namespace bandit { namespace detail {
struct spec_registrar
{
spec_registrar( bandit::detail::voidfunc_t func)
{
bandit::detail::specs().push_back(func);
}
};
}}
#define go_bandit \
static bandit::detail::spec_registrar bandit_registrar
#endif
|