From 6517da4563a47fb370f35c082ae709215f5d0b28 Mon Sep 17 00:00:00 2001 From: danmosemsft Date: Fri, 10 Feb 2017 20:51:05 -0800 Subject: Redundant ASSERTE blocks --- src/ToolBox/SOS/Strike/gcroot.cpp | 4 ---- src/ToolBox/SOS/Strike/sos.cpp | 2 -- 2 files changed, 6 deletions(-) (limited to 'src/ToolBox') diff --git a/src/ToolBox/SOS/Strike/gcroot.cpp b/src/ToolBox/SOS/Strike/gcroot.cpp index f68b935e21..86080989ec 100644 --- a/src/ToolBox/SOS/Strike/gcroot.cpp +++ b/src/ToolBox/SOS/Strike/gcroot.cpp @@ -40,18 +40,14 @@ #include "safemath.h" -#ifdef _ASSERTE #undef _ASSERTE -#endif -#ifndef _ASSERTE #ifdef _DEBUG #define _ASSERTE(expr) \ do { if (!(expr) ) { ExtErr("_ASSERTE fired:\n\t%s\n", #expr); if (IsDebuggerPresent()) DebugBreak(); } } while (0) #else #define _ASSERTE(x) #endif -#endif // ASSERTE inline size_t ALIGN_DOWN( size_t val, size_t alignment ) { diff --git a/src/ToolBox/SOS/Strike/sos.cpp b/src/ToolBox/SOS/Strike/sos.cpp index 351199c058..64ee4b9a0c 100644 --- a/src/ToolBox/SOS/Strike/sos.cpp +++ b/src/ToolBox/SOS/Strike/sos.cpp @@ -17,9 +17,7 @@ #include "gcdesc.h" -#ifdef _ASSERTE #undef _ASSERTE -#endif namespace sos { -- cgit v1.2.3