Skip to content

Commit 7a5604c

Browse files
committed
Sync SDL3 wiki -> headers.
1 parent 7e130e2 commit 7a5604c

Some content is hidden

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

60 files changed

+2070
-2070
lines changed

include/SDL3/SDL_assert.h

+22-22
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

@@ -165,7 +165,7 @@ extern "C" {
165165
*
166166
* If SDL can't figure how the compiler reports this, it will use "???".
167167
*
168-
* \since This macro is available since SDL 3.1.3.
168+
* \since This macro is available since SDL 3.2.0.
169169
*/
170170
#define SDL_FUNCTION __FUNCTION__
171171

@@ -180,14 +180,14 @@ extern "C" {
180180
/**
181181
* A macro that reports the current file being compiled.
182182
*
183-
* \since This macro is available since SDL 3.1.3.
183+
* \since This macro is available since SDL 3.2.0.
184184
*/
185185
#define SDL_FILE __FILE__
186186

187187
/**
188188
* A macro that reports the current line number of the file being compiled.
189189
*
190-
* \since This macro is available since SDL 3.1.3.
190+
* \since This macro is available since SDL 3.2.0.
191191
*/
192192
#define SDL_LINE __LINE__
193193

@@ -224,7 +224,7 @@ disable assertions.
224224
* do { SomethingOnce(); } while (SDL_NULL_WHILE_LOOP_CONDITION (0));
225225
* ```
226226
*
227-
* \since This macro is available since SDL 3.1.3.
227+
* \since This macro is available since SDL 3.2.0.
228228
*/
229229
#define SDL_NULL_WHILE_LOOP_CONDITION (0)
230230

@@ -248,7 +248,7 @@ disable assertions.
248248
*
249249
* \param condition the condition to assert (but not actually run here).
250250
*
251-
* \since This macro is available since SDL 3.1.3.
251+
* \since This macro is available since SDL 3.2.0.
252252
*/
253253
#define SDL_disabled_assert(condition) \
254254
do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
@@ -264,7 +264,7 @@ disable assertions.
264264
* condition, try to break in a debugger, kill the program, or ignore the
265265
* problem).
266266
*
267-
* \since This enum is available since SDL 3.1.3.
267+
* \since This enum is available since SDL 3.2.0.
268268
*/
269269
typedef enum SDL_AssertState
270270
{
@@ -282,7 +282,7 @@ typedef enum SDL_AssertState
282282
* used by the assertion handler, then added to the assertion report. This is
283283
* returned as a linked list from SDL_GetAssertionReport().
284284
*
285-
* \since This struct is available since SDL 3.1.3.
285+
* \since This struct is available since SDL 3.2.0.
286286
*/
287287
typedef struct SDL_AssertData
288288
{
@@ -308,7 +308,7 @@ typedef struct SDL_AssertData
308308
*
309309
* \threadsafety It is safe to call this function from any thread.
310310
*
311-
* \since This function is available since SDL 3.1.3.
311+
* \since This function is available since SDL 3.2.0.
312312
*/
313313
extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *data,
314314
const char *func,
@@ -323,7 +323,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
323323
* This isn't for direct use by apps; use SDL_assert or SDL_TriggerBreakpoint
324324
* instead.
325325
*
326-
* \since This macro is available since SDL 3.1.3.
326+
* \since This macro is available since SDL 3.2.0.
327327
*/
328328
#define SDL_AssertBreakpoint() SDL_TriggerBreakpoint()
329329

@@ -355,7 +355,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
355355
*
356356
* \param condition the condition to assert.
357357
*
358-
* \since This macro is available since SDL 3.1.3.
358+
* \since This macro is available since SDL 3.2.0.
359359
*/
360360
#define SDL_enabled_assert(condition) \
361361
do { \
@@ -401,7 +401,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
401401
*
402402
* \threadsafety It is safe to call this macro from any thread.
403403
*
404-
* \since This macro is available since SDL 3.1.3.
404+
* \since This macro is available since SDL 3.2.0.
405405
*/
406406
#define SDL_assert(condition) if (assertion_enabled && (condition)) { trigger_assertion; }
407407

@@ -434,7 +434,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
434434
*
435435
* \threadsafety It is safe to call this macro from any thread.
436436
*
437-
* \since This macro is available since SDL 3.1.3.
437+
* \since This macro is available since SDL 3.2.0.
438438
*/
439439
#define SDL_assert_release(condition) SDL_disabled_assert(condition)
440440

@@ -463,7 +463,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
463463
*
464464
* \threadsafety It is safe to call this macro from any thread.
465465
*
466-
* \since This macro is available since SDL 3.1.3.
466+
* \since This macro is available since SDL 3.2.0.
467467
*/
468468
#define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
469469

@@ -507,7 +507,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
507507
*
508508
* \threadsafety It is safe to call this macro from any thread.
509509
*
510-
* \since This macro is available since SDL 3.1.3.
510+
* \since This macro is available since SDL 3.2.0.
511511
*/
512512
#define SDL_assert_always(condition) SDL_enabled_assert(condition)
513513

@@ -523,7 +523,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
523523
* \threadsafety This callback may be called from any thread that triggers an
524524
* assert at any time.
525525
*
526-
* \since This datatype is available since SDL 3.1.3.
526+
* \since This datatype is available since SDL 3.2.0.
527527
*/
528528
typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
529529
const SDL_AssertData *data, void *userdata);
@@ -547,7 +547,7 @@ typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
547547
*
548548
* \threadsafety It is safe to call this function from any thread.
549549
*
550-
* \since This function is available since SDL 3.1.3.
550+
* \since This function is available since SDL 3.2.0.
551551
*
552552
* \sa SDL_GetAssertionHandler
553553
*/
@@ -568,7 +568,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetAssertionHandler(
568568
*
569569
* \threadsafety It is safe to call this function from any thread.
570570
*
571-
* \since This function is available since SDL 3.1.3.
571+
* \since This function is available since SDL 3.2.0.
572572
*
573573
* \sa SDL_GetAssertionHandler
574574
*/
@@ -593,7 +593,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(
593593
*
594594
* \threadsafety It is safe to call this function from any thread.
595595
*
596-
* \since This function is available since SDL 3.1.3.
596+
* \since This function is available since SDL 3.2.0.
597597
*
598598
* \sa SDL_SetAssertionHandler
599599
*/
@@ -627,7 +627,7 @@ extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetAssertionHandler(void **
627627
* SDL_ResetAssertionReport() simultaneously, may render the
628628
* returned pointer invalid.
629629
*
630-
* \since This function is available since SDL 3.1.3.
630+
* \since This function is available since SDL 3.2.0.
631631
*
632632
* \sa SDL_ResetAssertionReport
633633
*/
@@ -645,7 +645,7 @@ extern SDL_DECLSPEC const SDL_AssertData * SDLCALL SDL_GetAssertionReport(void);
645645
* assertion, or simultaneously calling this function may cause
646646
* memory leaks or crashes.
647647
*
648-
* \since This function is available since SDL 3.1.3.
648+
* \since This function is available since SDL 3.2.0.
649649
*
650650
* \sa SDL_GetAssertionReport
651651
*/

include/SDL3/SDL_asyncio.h

+11-11
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)