File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 133
133
#include <float.h>
134
134
#endif
135
135
136
+ /* SDL_ExitProcess is not declared in any public header, although
137
+ it is shared between some parts of SDL, because we don't want
138
+ anything calling it without an extremely good reason. */
139
+ #ifdef __WATCOMC__
140
+ extern void SDL_ExitProcess (int exitcode );
141
+ #pragma aux SDL_ExitProcess aborts;
142
+ #endif
143
+ extern SDL_NORETURN void SDL_ExitProcess (int exitcode );
144
+
145
+ #ifdef HAVE_LIBC
146
+ #define SDL_abort () abort()
147
+ #else
148
+
149
+ #define SDL_abort () do { \
150
+ SDL_TriggerBreakpoint(); \
151
+ SDL_ExitProcess(42); \
152
+ } while (0)
153
+ #endif
154
+
136
155
// If you run into a warning that O_CLOEXEC is redefined, update the SDL configuration header for your platform to add HAVE_O_CLOEXEC
137
156
#ifndef HAVE_O_CLOEXEC
138
157
#define O_CLOEXEC 0
You can’t perform that action at this time.
0 commit comments