MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / get_instance

Method get_instance

Suscan/Library.cpp:136–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136Singleton *
137Singleton::get_instance(void)
138{
139 if (Singleton::instance == nullptr) {
140 try {
141 Singleton::instance = new Singleton();
142 } catch (std::bad_alloc&) {
143 throw Exception("Failed to allocate Suscan's singleton");
144 }
145 }
146
147 return Singleton::instance;
148}
149
150std::string
151Singleton::sigutilsVersion(void)

Callers

nothing calls this directly

Calls 1

ExceptionClass · 0.85

Tested by

no test coverage detected