blob: f07766623b9a1646ba1c9f448904aba29172f429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef BANDIT_ADAPTERS_SNOWHOUSE_H
#define BANDIT_ADAPTERS_SNOWHOUSE_H
namespace bandit { namespace adapters {
struct snowhouse_adapter : public assertion_adapter
{
void adapt_exceptions(detail::voidfunc_t func)
{
try
{
func();
}
catch(const snowhouse::AssertionException& ex)
{
throw bandit::detail::assertion_exception(ex.GetMessage(), ex.GetFilename(), ex.GetLineNumber());
}
}
};
}}
#endif
|