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

Function useColourOnPlatform

unittests/catch.hpp:6932–6943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6930 };
6931
6932 bool useColourOnPlatform() {
6933 return
6934#ifdef CATCH_PLATFORM_MAC
6935 !isDebuggerActive() &&
6936#endif
6937#if !(defined(__DJGPP__) && defined(__STRICT_ANSI__))
6938 isatty(STDOUT_FILENO)
6939#else
6940 false
6941#endif
6942 ;
6943 }
6944 IColourImpl* platformColourInstance() {
6945 ErrnoGuard guard;
6946 IConfigPtr config = getCurrentContext().getConfig();

Callers 1

platformColourInstanceFunction · 0.85

Calls 1

isDebuggerActiveFunction · 0.85

Tested by

no test coverage detected