MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / use

Method use

test/expected/catch.hpp:10168–10177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10166 Colour::~Colour(){ if( !m_moved ) use( None ); }
10167
10168 void Colour::use( Code _colourCode ) {
10169 static IColourImpl* impl = platformColourInstance();
10170 // Strictly speaking, this cannot possibly happen.
10171 // However, under some conditions it does happen (see #1626),
10172 // and this change is small enough that we can let practicality
10173 // triumph over purity in this case.
10174 if (impl != NULL) {
10175 impl->use( _colourCode );
10176 }
10177 }
10178
10179 std::ostream& operator << ( std::ostream& os, Colour const& ) {
10180 return os;

Callers

nothing calls this directly

Calls 1

platformColourInstanceFunction · 0.85

Tested by

no test coverage detected