@@ -89,7 +89,7 @@ extern "C" {
89
89
* - 3: Paranoid settings: All SDL assertion macros enabled, including
90
90
* SDL_assert_paranoid.
91
91
*
92
- * \since This macro is available since SDL 3.1.3 .
92
+ * \since This macro is available since SDL 3.2.0 .
93
93
*/
94
94
#define SDL_ASSERT_LEVEL SomeNumberBasedOnVariousFactors
95
95
@@ -122,7 +122,7 @@ extern "C" {
122
122
*
123
123
* \threadsafety It is safe to call this macro from any thread.
124
124
*
125
- * \since This macro is available since SDL 3.1.3 .
125
+ * \since This macro is available since SDL 3.2.0 .
126
126
*/
127
127
#define SDL_TriggerBreakpoint () TriggerABreakpointInAPlatformSpecificManner
128
128
@@ -137,6 +137,8 @@ extern "C" {
137
137
#define SDL_TriggerBreakpoint () assert(0)
138
138
#elif SDL_HAS_BUILTIN (__builtin_debugtrap )
139
139
#define SDL_TriggerBreakpoint () __builtin_debugtrap()
140
+ #elif SDL_HAS_BUILTIN (__builtin_trap )
141
+ #define SDL_TriggerBreakpoint () __builtin_trap()
140
142
#elif (defined(__GNUC__ ) || defined(__clang__ )) && (defined(__i386__ ) || defined(__x86_64__ ))
141
143
#define SDL_TriggerBreakpoint () __asm__ __volatile__ ( "int $3\n\t" )
142
144
#elif (defined(__GNUC__ ) || defined(__clang__ )) && defined(__riscv )
@@ -163,7 +165,7 @@ extern "C" {
163
165
*
164
166
* If SDL can't figure how the compiler reports this, it will use "???".
165
167
*
166
- * \since This macro is available since SDL 3.1.3 .
168
+ * \since This macro is available since SDL 3.2.0 .
167
169
*/
168
170
#define SDL_FUNCTION __FUNCTION__
169
171
@@ -178,14 +180,14 @@ extern "C" {
178
180
/**
179
181
* A macro that reports the current file being compiled.
180
182
*
181
- * \since This macro is available since SDL 3.1.3 .
183
+ * \since This macro is available since SDL 3.2.0 .
182
184
*/
183
185
#define SDL_FILE __FILE__
184
186
185
187
/**
186
188
* A macro that reports the current line number of the file being compiled.
187
189
*
188
- * \since This macro is available since SDL 3.1.3 .
190
+ * \since This macro is available since SDL 3.2.0 .
189
191
*/
190
192
#define SDL_LINE __LINE__
191
193
@@ -222,7 +224,7 @@ disable assertions.
222
224
* do { SomethingOnce(); } while (SDL_NULL_WHILE_LOOP_CONDITION (0));
223
225
* ```
224
226
*
225
- * \since This macro is available since SDL 3.1.3 .
227
+ * \since This macro is available since SDL 3.2.0 .
226
228
*/
227
229
#define SDL_NULL_WHILE_LOOP_CONDITION (0)
228
230
@@ -246,7 +248,7 @@ disable assertions.
246
248
*
247
249
* \param condition the condition to assert (but not actually run here).
248
250
*
249
- * \since This macro is available since SDL 3.1.3 .
251
+ * \since This macro is available since SDL 3.2.0 .
250
252
*/
251
253
#define SDL_disabled_assert (condition ) \
252
254
do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
@@ -262,7 +264,7 @@ disable assertions.
262
264
* condition, try to break in a debugger, kill the program, or ignore the
263
265
* problem).
264
266
*
265
- * \since This enum is available since SDL 3.1.3 .
267
+ * \since This enum is available since SDL 3.2.0 .
266
268
*/
267
269
typedef enum SDL_AssertState
268
270
{
@@ -280,7 +282,7 @@ typedef enum SDL_AssertState
280
282
* used by the assertion handler, then added to the assertion report. This is
281
283
* returned as a linked list from SDL_GetAssertionReport().
282
284
*
283
- * \since This struct is available since SDL 3.1.3 .
285
+ * \since This struct is available since SDL 3.2.0 .
284
286
*/
285
287
typedef struct SDL_AssertData
286
288
{
@@ -306,7 +308,7 @@ typedef struct SDL_AssertData
306
308
*
307
309
* \threadsafety It is safe to call this function from any thread.
308
310
*
309
- * \since This function is available since SDL 3.1.3 .
311
+ * \since This function is available since SDL 3.2.0 .
310
312
*/
311
313
extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion (SDL_AssertData * data ,
312
314
const char * func ,
@@ -321,7 +323,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
321
323
* This isn't for direct use by apps; use SDL_assert or SDL_TriggerBreakpoint
322
324
* instead.
323
325
*
324
- * \since This macro is available since SDL 3.1.3 .
326
+ * \since This macro is available since SDL 3.2.0 .
325
327
*/
326
328
#define SDL_AssertBreakpoint () SDL_TriggerBreakpoint()
327
329
@@ -353,7 +355,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
353
355
*
354
356
* \param condition the condition to assert.
355
357
*
356
- * \since This macro is available since SDL 3.1.3 .
358
+ * \since This macro is available since SDL 3.2.0 .
357
359
*/
358
360
#define SDL_enabled_assert (condition ) \
359
361
do { \
@@ -399,7 +401,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
399
401
*
400
402
* \threadsafety It is safe to call this macro from any thread.
401
403
*
402
- * \since This macro is available since SDL 3.1.3 .
404
+ * \since This macro is available since SDL 3.2.0 .
403
405
*/
404
406
#define SDL_assert (condition ) if (assertion_enabled && (condition)) { trigger_assertion; }
405
407
@@ -432,7 +434,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
432
434
*
433
435
* \threadsafety It is safe to call this macro from any thread.
434
436
*
435
- * \since This macro is available since SDL 3.1.3 .
437
+ * \since This macro is available since SDL 3.2.0 .
436
438
*/
437
439
#define SDL_assert_release (condition ) SDL_disabled_assert(condition)
438
440
@@ -461,7 +463,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
461
463
*
462
464
* \threadsafety It is safe to call this macro from any thread.
463
465
*
464
- * \since This macro is available since SDL 3.1.3 .
466
+ * \since This macro is available since SDL 3.2.0 .
465
467
*/
466
468
#define SDL_assert_paranoid (condition ) SDL_disabled_assert(condition)
467
469
@@ -505,7 +507,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
505
507
*
506
508
* \threadsafety It is safe to call this macro from any thread.
507
509
*
508
- * \since This macro is available since SDL 3.1.3 .
510
+ * \since This macro is available since SDL 3.2.0 .
509
511
*/
510
512
#define SDL_assert_always (condition ) SDL_enabled_assert(condition)
511
513
@@ -521,7 +523,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
521
523
* \threadsafety This callback may be called from any thread that triggers an
522
524
* assert at any time.
523
525
*
524
- * \since This datatype is available since SDL 3.1.3 .
526
+ * \since This datatype is available since SDL 3.2.0 .
525
527
*/
526
528
typedef SDL_AssertState (SDLCALL * SDL_AssertionHandler )(
527
529
const SDL_AssertData * data , void * userdata );
@@ -545,7 +547,7 @@ typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
545
547
*
546
548
* \threadsafety It is safe to call this function from any thread.
547
549
*
548
- * \since This function is available since SDL 3.1.3 .
550
+ * \since This function is available since SDL 3.2.0 .
549
551
*
550
552
* \sa SDL_GetAssertionHandler
551
553
*/
@@ -566,7 +568,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetAssertionHandler(
566
568
*
567
569
* \threadsafety It is safe to call this function from any thread.
568
570
*
569
- * \since This function is available since SDL 3.1.3 .
571
+ * \since This function is available since SDL 3.2.0 .
570
572
*
571
573
* \sa SDL_GetAssertionHandler
572
574
*/
@@ -591,7 +593,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(
591
593
*
592
594
* \threadsafety It is safe to call this function from any thread.
593
595
*
594
- * \since This function is available since SDL 3.1.3 .
596
+ * \since This function is available since SDL 3.2.0 .
595
597
*
596
598
* \sa SDL_SetAssertionHandler
597
599
*/
@@ -625,7 +627,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetAssertionHandler(void **
625
627
* SDL_ResetAssertionReport() simultaneously, may render the
626
628
* returned pointer invalid.
627
629
*
628
- * \since This function is available since SDL 3.1.3 .
630
+ * \since This function is available since SDL 3.2.0 .
629
631
*
630
632
* \sa SDL_ResetAssertionReport
631
633
*/
@@ -643,7 +645,7 @@ extern SDL_DECLSPEC const SDL_AssertData * SDLCALL SDL_GetAssertionReport(void);
643
645
* assertion, or simultaneously calling this function may cause
644
646
* memory leaks or crashes.
645
647
*
646
- * \since This function is available since SDL 3.1.3 .
648
+ * \since This function is available since SDL 3.2.0 .
647
649
*
648
650
* \sa SDL_GetAssertionReport
649
651
*/
0 commit comments