From 55c63af8aef890efeb1b68cbf2ae82745c1760f8 Mon Sep 17 00:00:00 2001 From: Matt Rubin Date: Sat, 19 Feb 2011 16:03:42 -0800 Subject: [PATCH] Fixed a compiler error when on a Mac with DEBUG not defined, which resulted in an undefined BreakIntoDebugger() --- internal/catch_debugger.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/catch_debugger.hpp b/internal/catch_debugger.hpp index dc3aec24..5623e48e 100644 --- a/internal/catch_debugger.hpp +++ b/internal/catch_debugger.hpp @@ -76,6 +76,8 @@ #else #define BreakIntoDebugger() if( Catch::AmIBeingDebugged() ) {__asm__("int $3\n" : : );} #endif + #else + #define BreakIntoDebugger() #endif #elif defined(__WIN32__) && defined(_MSC_VER)