blob: b5c6ce9d44424fc8abe3a47f94ab8a00de30a530 [file] [log] [blame]
#include "catch_tag_alias_autoregistrar.h"
#include "catch_interfaces_registry_hub.h"
namespace Catch {
RegistrarForTagAliases::RegistrarForTagAliases(char const* alias, char const* tag, SourceLineInfo const& lineInfo) {
CATCH_INTERNAL_TRY {
getMutableRegistryHub().registerTagAlias(alias, tag, lineInfo);
} CATCH_INTERNAL_CATCH_ALL() {
// Do not throw when constructing global objects, instead register the exception to be processed later
getMutableRegistryHub().registerStartupException();
}
}
}