Unverified Commit 6784a737 authored by Thomas Trummer's avatar Thomas Trummer Committed by GitHub
Browse files

Replace inline assembly with compiler intrinsic for _IRR_DEBUG_BREAK_IF (#2667)

parent 26532ffa
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// This file is part of the "Irrlicht Engine". // This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
// NOTE: This file has been changed from the orginal source distribution.
#ifndef __IRR_TYPES_H_INCLUDED__ #ifndef __IRR_TYPES_H_INCLUDED__
#define __IRR_TYPES_H_INCLUDED__ #define __IRR_TYPES_H_INCLUDED__
...@@ -80,7 +82,8 @@ typedef unsigned short wchar_t; ...@@ -80,7 +82,8 @@ typedef unsigned short wchar_t;
//! define a break macro for debugging only in Win32 mode. //! define a break macro for debugging only in Win32 mode.
#if defined(WIN32) && defined(_MSC_VER) && defined(_DEBUG) #if defined(WIN32) && defined(_MSC_VER) && defined(_DEBUG)
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_asm int 3} // NOTE: This line has been changed and originally used '_asm int 3' to break into the debugger.
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) { __debugbreak(); }
#else #else
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) #define _IRR_DEBUG_BREAK_IF( _CONDITION_ )
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment