mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 21:49:24 +00:00
Added nothrow command line option
Causes _THROWS family of macros to no evaluate expression
This commit is contained in:
parent
e20b252b5a
commit
46a3476731
9 changed files with 107 additions and 32 deletions
|
@ -32,7 +32,8 @@ namespace Catch {
|
|||
Context::Context()
|
||||
: m_reporterRegistry( new ReporterRegistry ),
|
||||
m_testCaseRegistry( new TestRegistry ),
|
||||
m_exceptionTranslatorRegistry( new ExceptionTranslatorRegistry )
|
||||
m_exceptionTranslatorRegistry( new ExceptionTranslatorRegistry ),
|
||||
m_config( NULL )
|
||||
{}
|
||||
|
||||
void Context::cleanUp() {
|
||||
|
@ -47,6 +48,13 @@ namespace Catch {
|
|||
void Context::setResultCapture( IResultCapture* resultCapture ) {
|
||||
m_resultCapture = resultCapture;
|
||||
}
|
||||
|
||||
const IConfig* Context::getConfig() const {
|
||||
return m_config;
|
||||
}
|
||||
void Context::setConfig( const IConfig* config ) {
|
||||
m_config = config;
|
||||
}
|
||||
|
||||
IResultCapture& Context::getResultCapture() {
|
||||
return *m_resultCapture;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue