MCPcopy Create free account
hub / github.com/OpenMW/openmw / write

Method write

components/debug/debugging.cpp:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 }
277
278 void write(const char* str, std::streamsize size, Level level)
279 {
280 if (mUseColor)
281 mStream << "\033[0;" << getColor(level) << 'm';
282 mStream.write(str, size);
283 if (mUseColor)
284 mStream << "\033[0;" << Reset << 'm';
285 mStream.flush();
286 }
287
288 private:
289 std::ostream& mStream;

Callers

nothing calls this directly

Calls 3

getColorFunction · 0.85
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected