Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6784a737
Unverified
Commit
6784a737
authored
May 11, 2020
by
Thomas Trummer
Committed by
GitHub
May 11, 2020
Browse files
Replace inline assembly with compiler intrinsic for _IRR_DEBUG_BREAK_IF (#2667)
parent
26532ffa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
libraries/irrxml/include/irrTypes.h
libraries/irrxml/include/irrTypes.h
+4
-1
No files found.
libraries/irrxml/include/irrTypes.h
View file @
6784a737
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment