mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-02 04:59:32 +01:00
Added generic singletons facility
<sigh> yes, I know - but we have them - may as well make them consistent and safer
This commit is contained in:
committed by
Martin Hořeňovský
parent
38248f3f2c
commit
eb783fc20e
@@ -14,6 +14,7 @@
|
||||
#include "catch_exception_translator_registry.h"
|
||||
#include "catch_tag_alias_registry.h"
|
||||
#include "catch_startup_exception_registry.h"
|
||||
#include "catch_singletons.hpp"
|
||||
|
||||
namespace Catch {
|
||||
|
||||
@@ -84,6 +85,7 @@ namespace Catch {
|
||||
return *getTheRegistryHub();
|
||||
}
|
||||
void cleanUp() {
|
||||
cleanupSingletons();
|
||||
delete getTheRegistryHub();
|
||||
getTheRegistryHub() = nullptr;
|
||||
cleanUpContext();
|
||||
|
||||
Reference in New Issue
Block a user