mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-13 17:05:39 +02:00
Added nothrow command line option
Causes _THROWS family of macros to no evaluate expression
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user