Skip to content

Commit d174c51

Browse files
committed
Update vendored SDL3 headers to version 3.2.0
1 parent 0775d0f commit d174c51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2374
-2116
lines changed

libs/sdl3/include/SDL3/SDL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
/**
23-
* Main include header for the SDL library, version 3.1.10
23+
* Main include header for the SDL library, version 3.2.0
2424
*
2525
* It is almost always best to include just this one header instead of
2626
* picking out individual headers included here. There are exceptions to

libs/sdl3/include/SDL3/SDL_assert.h

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extern "C" {
8989
* - 3: Paranoid settings: All SDL assertion macros enabled, including
9090
* SDL_assert_paranoid.
9191
*
92-
* \since This macro is available since SDL 3.1.3.
92+
* \since This macro is available since SDL 3.2.0.
9393
*/
9494
#define SDL_ASSERT_LEVEL SomeNumberBasedOnVariousFactors
9595

@@ -122,7 +122,7 @@ extern "C" {
122122
*
123123
* \threadsafety It is safe to call this macro from any thread.
124124
*
125-
* \since This macro is available since SDL 3.1.3.
125+
* \since This macro is available since SDL 3.2.0.
126126
*/
127127
#define SDL_TriggerBreakpoint() TriggerABreakpointInAPlatformSpecificManner
128128

@@ -137,6 +137,8 @@ extern "C" {
137137
#define SDL_TriggerBreakpoint() assert(0)
138138
#elif SDL_HAS_BUILTIN(__builtin_debugtrap)
139139
#define SDL_TriggerBreakpoint() __builtin_debugtrap()
140+
#elif SDL_HAS_BUILTIN(__builtin_trap)
141+
#define SDL_TriggerBreakpoint() __builtin_trap()
140142
#elif (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
141143
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
142144
#elif (defined(__GNUC__) || defined(__clang__)) && defined(__riscv)
@@ -163,7 +165,7 @@ extern "C" {
163165
*
164166
* If SDL can't figure how the compiler reports this, it will use "???".
165167
*
166-
* \since This macro is available since SDL 3.1.3.
168+
* \since This macro is available since SDL 3.2.0.
167169
*/
168170
#define SDL_FUNCTION __FUNCTION__
169171

@@ -178,14 +180,14 @@ extern "C" {
178180
/**
179181
* A macro that reports the current file being compiled.
180182
*
181-
* \since This macro is available since SDL 3.1.3.
183+
* \since This macro is available since SDL 3.2.0.
182184
*/
183185
#define SDL_FILE __FILE__
184186

185187
/**
186188
* A macro that reports the current line number of the file being compiled.
187189
*
188-
* \since This macro is available since SDL 3.1.3.
190+
* \since This macro is available since SDL 3.2.0.
189191
*/
190192
#define SDL_LINE __LINE__
191193

@@ -222,7 +224,7 @@ disable assertions.
222224
* do { SomethingOnce(); } while (SDL_NULL_WHILE_LOOP_CONDITION (0));
223225
* ```
224226
*
225-
* \since This macro is available since SDL 3.1.3.
227+
* \since This macro is available since SDL 3.2.0.
226228
*/
227229
#define SDL_NULL_WHILE_LOOP_CONDITION (0)
228230

@@ -246,7 +248,7 @@ disable assertions.
246248
*
247249
* \param condition the condition to assert (but not actually run here).
248250
*
249-
* \since This macro is available since SDL 3.1.3.
251+
* \since This macro is available since SDL 3.2.0.
250252
*/
251253
#define SDL_disabled_assert(condition) \
252254
do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
@@ -262,7 +264,7 @@ disable assertions.
262264
* condition, try to break in a debugger, kill the program, or ignore the
263265
* problem).
264266
*
265-
* \since This enum is available since SDL 3.1.3.
267+
* \since This enum is available since SDL 3.2.0.
266268
*/
267269
typedef enum SDL_AssertState
268270
{
@@ -280,7 +282,7 @@ typedef enum SDL_AssertState
280282
* used by the assertion handler, then added to the assertion report. This is
281283
* returned as a linked list from SDL_GetAssertionReport().
282284
*
283-
* \since This struct is available since SDL 3.1.3.
285+
* \since This struct is available since SDL 3.2.0.
284286
*/
285287
typedef struct SDL_AssertData
286288
{
@@ -306,7 +308,7 @@ typedef struct SDL_AssertData
306308
*
307309
* \threadsafety It is safe to call this function from any thread.
308310
*
309-
* \since This function is available since SDL 3.1.3.
311+
* \since This function is available since SDL 3.2.0.
310312
*/
311313
extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *data,
312314
const char *func,
@@ -321,7 +323,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
321323
* This isn't for direct use by apps; use SDL_assert or SDL_TriggerBreakpoint
322324
* instead.
323325
*
324-
* \since This macro is available since SDL 3.1.3.
326+
* \since This macro is available since SDL 3.2.0.
325327
*/
326328
#define SDL_AssertBreakpoint() SDL_TriggerBreakpoint()
327329

@@ -353,7 +355,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
353355
*
354356
* \param condition the condition to assert.
355357
*
356-
* \since This macro is available since SDL 3.1.3.
358+
* \since This macro is available since SDL 3.2.0.
357359
*/
358360
#define SDL_enabled_assert(condition) \
359361
do { \
@@ -399,7 +401,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
399401
*
400402
* \threadsafety It is safe to call this macro from any thread.
401403
*
402-
* \since This macro is available since SDL 3.1.3.
404+
* \since This macro is available since SDL 3.2.0.
403405
*/
404406
#define SDL_assert(condition) if (assertion_enabled && (condition)) { trigger_assertion; }
405407

@@ -432,7 +434,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
432434
*
433435
* \threadsafety It is safe to call this macro from any thread.
434436
*
435-
* \since This macro is available since SDL 3.1.3.
437+
* \since This macro is available since SDL 3.2.0.
436438
*/
437439
#define SDL_assert_release(condition) SDL_disabled_assert(condition)
438440

@@ -461,7 +463,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
461463
*
462464
* \threadsafety It is safe to call this macro from any thread.
463465
*
464-
* \since This macro is available since SDL 3.1.3.
466+
* \since This macro is available since SDL 3.2.0.
465467
*/
466468
#define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
467469

@@ -505,7 +507,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
505507
*
506508
* \threadsafety It is safe to call this macro from any thread.
507509
*
508-
* \since This macro is available since SDL 3.1.3.
510+
* \since This macro is available since SDL 3.2.0.
509511
*/
510512
#define SDL_assert_always(condition) SDL_enabled_assert(condition)
511513

@@ -521,7 +523,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
521523
* \threadsafety This callback may be called from any thread that triggers an
522524
* assert at any time.
523525
*
524-
* \since This datatype is available since SDL 3.1.3.
526+
* \since This datatype is available since SDL 3.2.0.
525527
*/
526528
typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
527529
const SDL_AssertData *data, void *userdata);
@@ -545,7 +547,7 @@ typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
545547
*
546548
* \threadsafety It is safe to call this function from any thread.
547549
*
548-
* \since This function is available since SDL 3.1.3.
550+
* \since This function is available since SDL 3.2.0.
549551
*
550552
* \sa SDL_GetAssertionHandler
551553
*/
@@ -566,7 +568,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetAssertionHandler(
566568
*
567569
* \threadsafety It is safe to call this function from any thread.
568570
*
569-
* \since This function is available since SDL 3.1.3.
571+
* \since This function is available since SDL 3.2.0.
570572
*
571573
* \sa SDL_GetAssertionHandler
572574
*/
@@ -591,7 +593,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(
591593
*
592594
* \threadsafety It is safe to call this function from any thread.
593595
*
594-
* \since This function is available since SDL 3.1.3.
596+
* \since This function is available since SDL 3.2.0.
595597
*
596598
* \sa SDL_SetAssertionHandler
597599
*/
@@ -625,7 +627,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetAssertionHandler(void **
625627
* SDL_ResetAssertionReport() simultaneously, may render the
626628
* returned pointer invalid.
627629
*
628-
* \since This function is available since SDL 3.1.3.
630+
* \since This function is available since SDL 3.2.0.
629631
*
630632
* \sa SDL_ResetAssertionReport
631633
*/
@@ -643,7 +645,7 @@ extern SDL_DECLSPEC const SDL_AssertData * SDLCALL SDL_GetAssertionReport(void);
643645
* assertion, or simultaneously calling this function may cause
644646
* memory leaks or crashes.
645647
*
646-
* \since This function is available since SDL 3.1.3.
648+
* \since This function is available since SDL 3.2.0.
647649
*
648650
* \sa SDL_GetAssertionReport
649651
*/

libs/sdl3/include/SDL3/SDL_asyncio.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ typedef struct SDL_AsyncIOQueue SDL_AsyncIOQueue;
213213
* \returns a pointer to the SDL_AsyncIO structure that is created or NULL on
214214
* failure; call SDL_GetError() for more information.
215215
*
216-
* \since This function is available since SDL 3.1.8.
216+
* \since This function is available since SDL 3.2.0.
217217
*
218218
* \sa SDL_CloseAsyncIO
219219
* \sa SDL_ReadAsyncIO
@@ -234,7 +234,7 @@ extern SDL_DECLSPEC SDL_AsyncIO * SDLCALL SDL_AsyncIOFromFile(const char *file,
234234
*
235235
* \threadsafety It is safe to call this function from any thread.
236236
*
237-
* \since This function is available since SDL 3.1.8.
237+
* \since This function is available since SDL 3.2.0.
238238
*/
239239
extern SDL_DECLSPEC Sint64 SDLCALL SDL_GetAsyncIOSize(SDL_AsyncIO *asyncio);
240240

@@ -269,7 +269,7 @@ extern SDL_DECLSPEC Sint64 SDLCALL SDL_GetAsyncIOSize(SDL_AsyncIO *asyncio);
269269
*
270270
* \threadsafety It is safe to call this function from any thread.
271271
*
272-
* \since This function is available since SDL 3.1.8.
272+
* \since This function is available since SDL 3.2.0.
273273
*
274274
* \sa SDL_WriteAsyncIO
275275
* \sa SDL_CreateAsyncIOQueue
@@ -306,7 +306,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ReadAsyncIO(SDL_AsyncIO *asyncio, void *ptr
306306
*
307307
* \threadsafety It is safe to call this function from any thread.
308308
*
309-
* \since This function is available since SDL 3.1.8.
309+
* \since This function is available since SDL 3.2.0.
310310
*
311311
* \sa SDL_ReadAsyncIO
312312
* \sa SDL_CreateAsyncIOQueue
@@ -358,7 +358,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WriteAsyncIO(SDL_AsyncIO *asyncio, void *pt
358358
* \threadsafety It is safe to call this function from any thread, but two
359359
* threads should not attempt to close the same object.
360360
*
361-
* \since This function is available since SDL 3.1.8.
361+
* \since This function is available since SDL 3.2.0.
362362
*/
363363
extern SDL_DECLSPEC bool SDLCALL SDL_CloseAsyncIO(SDL_AsyncIO *asyncio, bool flush, SDL_AsyncIOQueue *queue, void *userdata);
364364

@@ -373,7 +373,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_CloseAsyncIO(SDL_AsyncIO *asyncio, bool flu
373373
*
374374
* \threadsafety It is safe to call this function from any thread.
375375
*
376-
* \since This function is available since SDL 3.1.8.
376+
* \since This function is available since SDL 3.2.0.
377377
*
378378
* \sa SDL_DestroyAsyncIOQueue
379379
* \sa SDL_GetAsyncIOResult
@@ -407,7 +407,7 @@ extern SDL_DECLSPEC SDL_AsyncIOQueue * SDLCALL SDL_CreateAsyncIOQueue(void);
407407
* no other thread is waiting on the queue with
408408
* SDL_WaitAsyncIOResult.
409409
*
410-
* \since This function is available since SDL 3.1.8.
410+
* \since This function is available since SDL 3.2.0.
411411
*/
412412
extern SDL_DECLSPEC void SDLCALL SDL_DestroyAsyncIOQueue(SDL_AsyncIOQueue *queue);
413413

@@ -431,7 +431,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_DestroyAsyncIOQueue(SDL_AsyncIOQueue *queue
431431
*
432432
* \threadsafety It is safe to call this function from any thread.
433433
*
434-
* \since This function is available since SDL 3.1.8.
434+
* \since This function is available since SDL 3.2.0.
435435
*
436436
* \sa SDL_WaitAsyncIOResult
437437
*/
@@ -475,7 +475,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetAsyncIOResult(SDL_AsyncIOQueue *queue, S
475475
*
476476
* \threadsafety It is safe to call this function from any thread.
477477
*
478-
* \since This function is available since SDL 3.1.8.
478+
* \since This function is available since SDL 3.2.0.
479479
*
480480
* \sa SDL_SignalAsyncIOQueue
481481
*/
@@ -499,7 +499,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WaitAsyncIOResult(SDL_AsyncIOQueue *queue,
499499
*
500500
* \threadsafety It is safe to call this function from any thread.
501501
*
502-
* \since This function is available since SDL 3.1.8.
502+
* \since This function is available since SDL 3.2.0.
503503
*
504504
* \sa SDL_WaitAsyncIOResult
505505
*/
@@ -531,7 +531,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SignalAsyncIOQueue(SDL_AsyncIOQueue *queue)
531531
* \returns true on success or false on failure; call SDL_GetError() for more
532532
* information.
533533
*
534-
* \since This function is available since SDL 3.1.8.
534+
* \since This function is available since SDL 3.2.0.
535535
*
536536
* \sa SDL_LoadFile_IO
537537
*/

0 commit comments

Comments
 (0)