Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SharedLibrary.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/DSLs.h
>
4
#include <
Specs/ExceptionHandlers/CStringExceptionHandler.h
>
5
#include <
Specs/ExceptionHandlers/StdExceptionExceptionHandler.h
>
6
7
#include "
DLL/Entrypoint.h
"
// IWYU pragma: keep
8
9
namespace
_Specs_DLL_Configuration
{
10
inline
static
auto
cStringExceptionHandler
=
11
SpecsCpp::ExceptionHandlers::CStringExceptionHandler
();
12
inline
static
auto
stdExceptionExceptionHandler
=
13
SpecsCpp::ExceptionHandlers::StdExceptionExceptionHandler
();
14
}
15
16
Configure
{
17
if
(
auto
* specsEnv =
SpecsCpp::global_spec_environment
().get()) {
18
specsEnv->local_exception_handlers()->register_exception_handler(
19
&
_Specs_DLL_Configuration::cStringExceptionHandler
20
);
21
specsEnv->local_exception_handlers()->register_exception_handler(
22
&
_Specs_DLL_Configuration::stdExceptionExceptionHandler
23
);
24
}
25
}
CStringExceptionHandler.h
Configure
#define Configure
Definition
Configure.h:5
DSLs.h
Entrypoint.h
StdExceptionExceptionHandler.h
SpecsCpp::ExceptionHandlers::CStringExceptionHandler
Definition
CStringExceptionHandler.h:10
SpecsCpp::ExceptionHandlers::StdExceptionExceptionHandler
Definition
StdExceptionExceptionHandler.h:9
_Specs_DLL_Configuration
Definition
SharedLibrary.h:9
_Specs_DLL_Configuration::stdExceptionExceptionHandler
static auto stdExceptionExceptionHandler
Definition
SharedLibrary.h:12
_Specs_DLL_Configuration::cStringExceptionHandler
static auto cStringExceptionHandler
Definition
SharedLibrary.h:10
SpecsCpp::global_spec_environment
GlobalSpecEnvironment & global_spec_environment()
Definition
GlobalSpecEnvironment.h:15
Specs.DLL
include
Specs
SharedLibrary.h
<3 Mrowr Purr