From d96f1514485ffa449bb0c19b3e5c6216d401cffb Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 30 May 2020 12:20:18 -0700 Subject: [PATCH] Delete unused file (#37201) --- src/coreclr/src/inc/winrt/ntassert.h | 210 --------------------------- 1 file changed, 210 deletions(-) delete mode 100644 src/coreclr/src/inc/winrt/ntassert.h diff --git a/src/coreclr/src/inc/winrt/ntassert.h b/src/coreclr/src/inc/winrt/ntassert.h deleted file mode 100644 index d6a2fd17bc8f1..0000000000000 --- a/src/coreclr/src/inc/winrt/ntassert.h +++ /dev/null @@ -1,210 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -/*++ - -Module Name: - - ntassert.h - -Abstract: - - Defines DbgRaiseAssertionFailure, and the NT_ASSERT and NT_VERIFY macros. - - Note that normally platform-specific definitions like - DbgRaiseAssertionFailure would go to platform-specific subheaders (nti386_x, - etc.), they are placed here instead for convenience. - ---*/ - -#pragma once - -// begin_wdm begin_winnt begin_ntminiport - -#ifdef __cplusplus -extern "C" { -#endif - -// -// Assert exception. -// - -#if !defined(_DBGRAISEASSERTIONFAILURE_) && !defined(RC_INVOKED) && !defined(MIDL_PASS) - -#define _DBGRAISEASSERTIONFAILURE_ - -#if defined(_PREFAST_) - -__analysis_noreturn -FORCEINLINE -VOID -DbgRaiseAssertionFailure ( - VOID - ); - -#endif - -#if defined(HOST_AMD64) - -#if defined(_M_AMD64) - -VOID -__int2c ( - VOID - ); - -#pragma intrinsic(__int2c) - -#if !defined(_PREFAST_) - -#define DbgRaiseAssertionFailure() __int2c() - -#endif // !defined(_PREFAST_) - -#endif // defined(_M_AMD64) - -#elif defined(HOST_X86) - -#if defined(_M_IX86) - -#if _MSC_FULL_VER >= 140030222 - -VOID -__int2c ( - VOID - ); - -#pragma intrinsic(__int2c) - -#if !defined(_PREFAST_) - -#define DbgRaiseAssertionFailure() __int2c() - -#endif // !defined(_PREFAST_) - -#else // _MSC_FULL_VER >= 140030222 - -#pragma warning( push ) -#pragma warning( disable : 4793 ) - -#if !defined(_PREFAST_) - -__analysis_noreturn -FORCEINLINE -VOID -DbgRaiseAssertionFailure ( - VOID - ) - -{ - __asm int 0x2c -} - -#endif // !defined(_PREFAST_) - -#pragma warning( pop ) - -#endif // _MSC_FULL_VER >= 140030222 - -#endif // defined(_M_IX86) - -#elif defined(_IA64_) - -#if defined(_M_IA64) - -void -__break( - _In_ int StIIM - ); - -#pragma intrinsic (__break) - -#define BREAK_DEBUG_BASE 0x080000 -#define ASSERT_BREAKPOINT (BREAK_DEBUG_BASE+3) // Cause a STATUS_ASSERTION_FAILURE exception to be raised. - -#if !defined(_PREFAST_) - -#define DbgRaiseAssertionFailure() __break(ASSERT_BREAKPOINT) - -#endif // !defined(_PREFAST_) - -#endif // defined(_M_IA64) - -#elif defined(HOST_ARM) - -#if defined(_M_ARM) - -VOID -__emit( - const unsigned __int32 opcode - ); - -#pragma intrinsic(__emit) - -#if !defined(_PREFAST_) - -#define DbgRaiseAssertionFailure() __emit(0xdefc) // THUMB_ASSERT - -#endif // !defined(_PREFAST_) - -#endif // defined(_M_ARM) - -#endif // HOST_AMD64, HOST_X86, _IA64_, HOST_ARM -#endif // !defined(_DBGRAISEASSERTIONFAILURE_) && !defined(RC_INVOKED) && !defined(MIDL_PASS) - -#ifdef __cplusplus -} -#endif - -// end_wdm end_winnt end_ntminiport - -// begin_wdm begin_ntminiport - -#if _MSC_VER >= 1300 -#if DBG - -#define NT_ASSERT(_exp) \ - ((!(_exp)) ? \ - (__annotation(L"Debug", L"AssertFail", L#_exp), \ - DbgRaiseAssertionFailure(), FALSE) : \ - TRUE) - -#define NT_ASSERTMSG(_msg, _exp) \ - ((!(_exp)) ? \ - (__annotation(L"Debug", L"AssertFail", L##_msg), \ - DbgRaiseAssertionFailure(), FALSE) : \ - TRUE) - -#define NT_ASSERTMSGW(_msg, _exp) \ - ((!(_exp)) ? \ - (__annotation(L"Debug", L"AssertFail", _msg), \ - DbgRaiseAssertionFailure(), FALSE) : \ - TRUE) - -#define NT_VERIFY NT_ASSERT -#define NT_VERIFYMSG NT_ASSERTMSG -#define NT_VERIFYMSGW NT_ASSERTMSGW - -#else // DBG - -#define NT_ASSERT(_exp) ((void) 0) -#define NT_ASSERTMSG(_msg, _exp) ((void) 0) -#define NT_ASSERTMSGW(_msg, _exp) ((void) 0) - -#define NT_VERIFY(_exp) ((_exp) ? TRUE : FALSE) -#define NT_VERIFYMSG(_msg, _exp ) ((_exp) ? TRUE : FALSE) -#define NT_VERIFYMSGW(_msg, _exp) ((_exp) ? TRUE : FALSE) - -#endif // DBG -#endif // _MSC_VER >= 1300 - -// end_wdm end_ntminiport - -#define WIN_ASSERT NT_ASSERT -#define WIN_ASSERTMSG NT_ASSERTMSG -#define WIN_ASSERTMSGW NT_ASSERTMSGW -#define WIN_VERIFY NT_VERIFY -#define WIN_VERIFYMSG NT_ASSERTMSG -#define WIN_VERIFYMSGW NT_ASSERTMSGW -