Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

catch_console_colour.cpp - adjust useColourOnPlatform for iOS

Commit
4e90f910dc83e38295a171b1345c4555c3024676
Author
ptc-tgamper ·
Committer
Martin Hořeňovský
Parents
0c59cc83cf4e

Files · Download .tar.gz

Changes

 include/internal/catch_console_colour.cpp | 2 +-
 include/internal/catch_debugger.cpp       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/internal/catch_console_colour.cpp b/include/internal/catch_console_colour.cpp
index 1c4799f8..f3c2204f 100644
--- a/include/internal/catch_console_colour.cpp
+++ b/include/internal/catch_console_colour.cpp
@@ -167,7 +167,7 @@ namespace {
 
     bool useColourOnPlatform() {
         return
-#ifdef CATCH_PLATFORM_MAC
+#if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE)
             !isDebuggerActive() &&
 #endif
 #if !(defined(__DJGPP__) && defined(__STRICT_ANSI__))
diff --git a/include/internal/catch_debugger.cpp b/include/internal/catch_debugger.cpp
index 9a218ff5..fc78c36e 100644
--- a/include/internal/catch_debugger.cpp
+++ b/include/internal/catch_debugger.cpp
@@ -12,7 +12,7 @@
 #include "catch_stream.h"
 #include "catch_platform.h"
 
-#if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE)
+#if defined(CATCH_PLATFORM_MAC) || defined(CATCH_PLATFORM_IPHONE)
 
 #  include <assert.h>
 #  include <stdbool.h>