2017-07-27 11:55:30 +02:00
|
|
|
#include "catch_tag_alias_autoregistrar.h"
|
2018-09-03 17:52:48 +02:00
|
|
|
#include "catch_compiler_capabilities.h"
|
2017-07-27 11:55:30 +02:00
|
|
|
#include "catch_interfaces_registry_hub.h"
|
|
|
|
|
|
|
|
namespace Catch {
|
2018-09-03 17:52:48 +02:00
|
|
|
|
2017-07-27 11:55:30 +02:00
|
|
|
RegistrarForTagAliases::RegistrarForTagAliases(char const* alias, char const* tag, SourceLineInfo const& lineInfo) {
|
2018-09-03 17:52:48 +02:00
|
|
|
CATCH_TRY {
|
2017-07-27 11:55:30 +02:00
|
|
|
getMutableRegistryHub().registerTagAlias(alias, tag, lineInfo);
|
2018-09-03 17:52:48 +02:00
|
|
|
} CATCH_CATCH_ALL {
|
2017-07-27 11:55:30 +02:00
|
|
|
// Do not throw when constructing global objects, instead register the exception to be processed later
|
2017-07-27 12:24:52 +02:00
|
|
|
getMutableRegistryHub().registerStartupException();
|
2017-07-27 11:55:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|