Skip to content

Commit dae3b11

Browse files
committed
Address PR feedback: partial debugmacros revert
1 parent 4d71c55 commit dae3b11

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

src/coreclr/gcinfo/arraylist.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
#undef _ASSERTE
77

88
#if defined(_DEBUG)
9-
109
extern "C" void assertAbort(const char* why, const char* file, unsigned line);
1110

1211
#define _ASSERTE(expr) if (!(expr)) { \
1312
assertAbort(#expr, __FILE__, __LINE__); \
1413
}
15-
#else // _DEBUG
16-
#define _ASSERTE(expr) (void)0
1714
#endif // _DEBUG
1815

1916
#include "gcinfohelpers.h"

src/coreclr/gcinfo/gcinfoencoder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
#undef _ASSERTE
1313

1414
#if defined(_DEBUG)
15-
1615
extern "C" void assertAbort(const char* why, const char* file, unsigned line);
1716

1817
#define _ASSERTE(expr) if (!(expr)) { \
1918
assertAbort(#expr, __FILE__, __LINE__); \
2019
}
21-
#else // _DEBUG
22-
#define _ASSERTE(expr) (void)0
2320
#endif // _DEBUG
2421

2522

src/coreclr/inc/debugmacros.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ extern VOID ANALYZER_NORETURN DbgAssertDialog(const char *szFile, int iLine, con
5555

5656
#else // !_DEBUG
5757

58-
#if !defined(_ASSERTE)
59-
#define _ASSERTE(expr) ((void)0)
60-
#endif
61-
#if !defined(_ASSERTE_MSG)
62-
#define _ASSERTE_MSG(expr, msg) ((void)0)
63-
#endif
58+
#define _ASSERTE(expr) ((void)0)
59+
#define _ASSERTE_MSG(expr, msg) ((void)0)
6460
#define VERIFY(stmt) (void)(stmt)
6561

6662
// At this point, EEPOLICY_HANDLE_FATAL_ERROR may or may not be defined. It will be defined

0 commit comments

Comments
 (0)