Skip to content

Commit

Permalink
Merge pull request #4 from edrlab/develop
Browse files Browse the repository at this point in the history
commenting out debug condition statement for GWS_DCHECK
  • Loading branch information
aferditamuriqi authored Nov 26, 2019
2 parents 680ab47 + 0d2b0a9 commit b36c6a6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions GCDWebServer/Core/GCDWebServerPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,22 @@ extern void GCDWebServerLogMessage(GCDWebServerLoggingLevel level, NSString* _No

#if !defined(GWS_DCHECK) || !defined(GWS_DNOT_REACHED)

#if DEBUG

#define GWS_DCHECK(__CONDITION__) \
do { \
if (!(__CONDITION__)) { \
abort(); \
} \
} while (0)
#define GWS_DNOT_REACHED() abort()

#else
//#if DEBUG
//
//#define GWS_DCHECK(__CONDITION__) \
// do { \
// if (!(__CONDITION__)) { \
// abort(); \
// } \
// } while (0)
//#define GWS_DNOT_REACHED() abort()
//
//#else

#define GWS_DCHECK(__CONDITION__)
#define GWS_DNOT_REACHED()

#endif
//#endif

#endif

Expand Down

0 comments on commit b36c6a6

Please sign in to comment.