Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
68afae13
Commit
68afae13
authored
Jan 17, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the portable intrinsic
parent
2bd8b295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
SDL_assert.h
include/SDL_assert.h
+3
-2
No files found.
include/SDL_assert.h
View file @
68afae13
...
@@ -50,8 +50,9 @@ on the assertion line and not in some random guts of SDL, and so each
...
@@ -50,8 +50,9 @@ on the assertion line and not in some random guts of SDL, and so each
assert can have unique static variables associated with it.
assert can have unique static variables associated with it.
*/
*/
#if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
#if defined(_MSC_VER)
#define SDL_TriggerBreakpoint() __asm { int 3 }
#include <intrin.h>
#define SDL_TriggerBreakpoint() __debugbreak()
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#elif defined(HAVE_SIGNAL_H)
#elif defined(HAVE_SIGNAL_H)
...
...
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