mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[PSDK]: Add missing DbgRaiseAssertionFailure inline to winnt.h header.
svn path=/trunk/; revision=49731
This commit is contained in:
parent
a17fe7e176
commit
af32d444fa
1 changed files with 12 additions and 0 deletions
|
@ -5265,12 +5265,24 @@ MemoryBarrier(VOID)
|
|||
#endif
|
||||
|
||||
#if defined(_M_IX86)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma intrinsic(__int2c)
|
||||
#pragma intrinsic(_mm_pause)
|
||||
#define YieldProcessor _mm_pause
|
||||
#else
|
||||
#define YieldProcessor() __asm__ __volatile__("pause");
|
||||
#define __int2c() __asm__ __volatile__("int $0x2c");
|
||||
#endif
|
||||
|
||||
|
||||
FORCEINLINE
|
||||
VOID
|
||||
DbgRaiseAssertionFailure(VOID)
|
||||
{
|
||||
__int2c();
|
||||
}
|
||||
|
||||
#elif defined (_M_AMD64)
|
||||
#ifdef _MSC_VER
|
||||
#pragma intrinsic(_mm_pause)
|
||||
|
|
Loading…
Reference in a new issue