MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / useColourOnPlatform

Function useColourOnPlatform

extlibs/catch/include/catch/catch.hpp:9847–9858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9845 };
9846
9847 bool useColourOnPlatform() {
9848 return
9849#ifdef CATCH_PLATFORM_MAC
9850 !isDebuggerActive() &&
9851#endif
9852#if !(defined(__DJGPP__) && defined(__STRICT_ANSI__))
9853 isatty(STDOUT_FILENO)
9854#else
9855 false
9856#endif
9857 ;
9858 }
9859 IColourImpl* platformColourInstance() {
9860 ErrnoGuard guard;
9861 IConfigPtr config = getCurrentContext().getConfig();

Callers 1

platformColourInstanceFunction · 0.85

Calls 1

isDebuggerActiveFunction · 0.85

Tested by

no test coverage detected