diff options
Diffstat (limited to 'src/inc/check.inl')
-rw-r--r-- | src/inc/check.inl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/inc/check.inl b/src/inc/check.inl index 33d100c7ec..9a3597ef81 100644 --- a/src/inc/check.inl +++ b/src/inc/check.inl @@ -23,10 +23,8 @@ inline LONG *CHECK::InitTls() #pragma pop_macro("HeapAlloc") #pragma pop_macro("GetProcessHeap") -#ifndef CLR_STANDALONE_BINDER ClrFlsSetValue(TlsIdx_Check, pCount); ClrFlsAssociateCallback(TlsIdx_Check, ReleaseCheckTls); -#endif //!CLR_STANDALONE_BINDER return pCount; } @@ -49,7 +47,7 @@ FORCEINLINE BOOL CHECK::EnterAssert() if (s_neverEnforceAsserts) return FALSE; -#if defined(_DEBUG_IMPL) && !defined(CLR_STANDALONE_BINDER) +#ifdef _DEBUG_IMPL m_pCount = (LONG *)ClrFlsGetValue(TlsIdx_Check); if (!m_pCount) { @@ -74,14 +72,14 @@ FORCEINLINE BOOL CHECK::EnterAssert() FORCEINLINE void CHECK::LeaveAssert() { -#if defined(_DEBUG_IMPL) && !defined(CLR_STANDALONE_BINDER) +#ifdef _DEBUG_IMPL *m_pCount = 0; #endif } FORCEINLINE BOOL CHECK::IsInAssert() { -#if defined(_DEBUG_IMPL) && !defined(CLR_STANDALONE_BINDER) +#ifdef _DEBUG_IMPL if (!m_pCount) m_pCount = (LONG *)ClrFlsGetValue(TlsIdx_Check); |