MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / instance

Method instance

unittests/catch.hpp:9519–9523  ·  view source on GitHub ↗

!TBD: put in TLS

Source from the content-addressed store, hash-verified

9517
9518 // !TBD: put in TLS
9519 static auto instance() -> StringStreams& {
9520 if( !s_instance )
9521 s_instance = new StringStreams();
9522 return *s_instance;
9523 }
9524 static void cleanup() {
9525 delete s_instance;
9526 s_instance = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected