Skip to content

Commit d31c37a

Browse files
author
Jay
committed
Update SDL3
1 parent c99906a commit d31c37a

File tree

262 files changed

+41837
-44180
lines changed

Some content is hidden

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

262 files changed

+41837
-44180
lines changed

libs/SDL3.xcframework/Info.plist

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,38 @@
1010
<key>DebugSymbolsPath</key>
1111
<string>dSYMs</string>
1212
<key>LibraryIdentifier</key>
13-
<string>ios-arm64_x86_64-simulator</string>
13+
<string>ios-arm64</string>
1414
<key>LibraryPath</key>
1515
<string>SDL3.framework</string>
1616
<key>SupportedArchitectures</key>
1717
<array>
1818
<string>arm64</string>
19-
<string>x86_64</string>
2019
</array>
2120
<key>SupportedPlatform</key>
2221
<string>ios</string>
23-
<key>SupportedPlatformVariant</key>
24-
<string>simulator</string>
2522
</dict>
2623
<dict>
2724
<key>BinaryPath</key>
28-
<string>SDL3.framework/SDL3</string>
25+
<string>SDL3.framework/Versions/A/SDL3</string>
2926
<key>DebugSymbolsPath</key>
3027
<string>dSYMs</string>
3128
<key>LibraryIdentifier</key>
32-
<string>tvos-arm64</string>
29+
<string>macos-arm64_x86_64</string>
3330
<key>LibraryPath</key>
3431
<string>SDL3.framework</string>
3532
<key>SupportedArchitectures</key>
3633
<array>
3734
<string>arm64</string>
35+
<string>x86_64</string>
3836
</array>
3937
<key>SupportedPlatform</key>
40-
<string>tvos</string>
38+
<string>macos</string>
4139
</dict>
4240
<dict>
4341
<key>BinaryPath</key>
4442
<string>SDL3.framework/SDL3</string>
45-
<key>DebugSymbolsPath</key>
46-
<string>dSYMs</string>
4743
<key>LibraryIdentifier</key>
48-
<string>tvos-arm64_x86_64-simulator</string>
44+
<string>ios-arm64_x86_64-simulator</string>
4945
<key>LibraryPath</key>
5046
<string>SDL3.framework</string>
5147
<key>SupportedArchitectures</key>
@@ -54,42 +50,42 @@
5450
<string>x86_64</string>
5551
</array>
5652
<key>SupportedPlatform</key>
57-
<string>tvos</string>
53+
<string>ios</string>
5854
<key>SupportedPlatformVariant</key>
5955
<string>simulator</string>
6056
</dict>
6157
<dict>
6258
<key>BinaryPath</key>
6359
<string>SDL3.framework/SDL3</string>
64-
<key>DebugSymbolsPath</key>
65-
<string>dSYMs</string>
6660
<key>LibraryIdentifier</key>
67-
<string>ios-arm64</string>
61+
<string>tvos-arm64_x86_64-simulator</string>
6862
<key>LibraryPath</key>
6963
<string>SDL3.framework</string>
7064
<key>SupportedArchitectures</key>
7165
<array>
7266
<string>arm64</string>
67+
<string>x86_64</string>
7368
</array>
7469
<key>SupportedPlatform</key>
75-
<string>ios</string>
70+
<string>tvos</string>
71+
<key>SupportedPlatformVariant</key>
72+
<string>simulator</string>
7673
</dict>
7774
<dict>
7875
<key>BinaryPath</key>
79-
<string>SDL3.framework/Versions/A/SDL3</string>
76+
<string>SDL3.framework/SDL3</string>
8077
<key>DebugSymbolsPath</key>
8178
<string>dSYMs</string>
8279
<key>LibraryIdentifier</key>
83-
<string>macos-arm64_x86_64</string>
80+
<string>tvos-arm64</string>
8481
<key>LibraryPath</key>
8582
<string>SDL3.framework</string>
8683
<key>SupportedArchitectures</key>
8784
<array>
8885
<string>arm64</string>
89-
<string>x86_64</string>
9086
</array>
9187
<key>SupportedPlatform</key>
92-
<string>macos</string>
88+
<string>tvos</string>
9389
</dict>
9490
</array>
9591
<key>CFBundlePackageType</key>

libs/SDL3.xcframework/ios-arm64/SDL3.framework/Headers/SDL.h

Lines changed: 2 additions & 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.2.28
23+
* Main include header for the SDL library, version 3.3.4
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
@@ -42,6 +42,7 @@
4242
#include <SDL3/SDL_clipboard.h>
4343
#include <SDL3/SDL_cpuinfo.h>
4444
#include <SDL3/SDL_dialog.h>
45+
#include <SDL3/SDL_dlopennote.h>
4546
#include <SDL3/SDL_endian.h>
4647
#include <SDL3/SDL_error.h>
4748
#include <SDL3/SDL_events.h>

libs/SDL3.xcframework/ios-arm64/SDL3.framework/Headers/SDL_assert.h

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,11 @@ extern "C" {
132132
#define SDL_TriggerBreakpoint() __debugbreak()
133133
#elif defined(_MSC_VER) && defined(_M_IX86)
134134
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
135-
#elif defined(ANDROID)
136-
#include <assert.h>
137-
#define SDL_TriggerBreakpoint() assert(0)
138135
#elif SDL_HAS_BUILTIN(__builtin_debugtrap)
139136
#define SDL_TriggerBreakpoint() __builtin_debugtrap()
140137
#elif SDL_HAS_BUILTIN(__builtin_trap)
141138
#define SDL_TriggerBreakpoint() __builtin_trap()
142-
#elif (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
139+
#elif (defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)) && (defined(__i386__) || defined(__x86_64__))
143140
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
144141
#elif (defined(__GNUC__) || defined(__clang__)) && defined(__riscv)
145142
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "ebreak\n\t" )
@@ -179,12 +176,48 @@ extern "C" {
179176
# define SDL_FUNCTION "???"
180177
#endif
181178

179+
#ifdef SDL_WIKI_DOCUMENTATION_SECTION
180+
182181
/**
183182
* A macro that reports the current file being compiled.
184183
*
184+
* This macro is only defined if it isn't already defined, so to override it
185+
* (perhaps with something that doesn't provide path information at all, so
186+
* build machine information doesn't leak into public binaries), apps can
187+
* define this macro before including SDL.h or SDL_assert.h.
188+
*
185189
* \since This macro is available since SDL 3.2.0.
186190
*/
191+
#define SDL_FILE __FILE_NAME__
192+
193+
#elif !defined(SDL_FILE)
194+
#ifdef __FILE_NAME__
195+
#define SDL_FILE __FILE_NAME__
196+
#else
187197
#define SDL_FILE __FILE__
198+
#endif
199+
#endif
200+
201+
#ifdef SDL_WIKI_DOCUMENTATION_SECTION
202+
203+
/**
204+
* A macro that reports the current file being compiled, for use in
205+
* assertions.
206+
*
207+
* This macro is only defined if it isn't already defined, so to override it
208+
* (perhaps with something that doesn't provide path information at all, so
209+
* build machine information doesn't leak into public binaries), apps can
210+
* define this macro before including SDL_assert.h. For example, defining this
211+
* to `""` will make sure no source path information is included in asserts.
212+
*
213+
* \since This macro is available since SDL 3.4.0.
214+
*/
215+
#define SDL_ASSERT_FILE SDL_FILE
216+
217+
#elif !defined(SDL_ASSERT_FILE)
218+
#define SDL_ASSERT_FILE SDL_FILE
219+
#endif
220+
188221

189222
/**
190223
* A macro that reports the current line number of the file being compiled.
@@ -363,7 +396,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
363396
do { \
364397
while ( !(condition) ) { \
365398
static struct SDL_AssertData sdl_assert_data = { false, 0, #condition, NULL, 0, NULL, NULL }; \
366-
const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \
399+
const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_ASSERT_FILE, SDL_LINE); \
367400
if (sdl_assert_state == SDL_ASSERTION_RETRY) { \
368401
continue; /* go again. */ \
369402
} else if (sdl_assert_state == SDL_ASSERTION_BREAK) { \

libs/SDL3.xcframework/ios-arm64/SDL3.framework/Headers/SDL_atomic.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,24 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_SetAtomicU32(SDL_AtomicU32 *a, Uint32 v);
596596
*/
597597
extern SDL_DECLSPEC Uint32 SDLCALL SDL_GetAtomicU32(SDL_AtomicU32 *a);
598598

599+
/**
600+
* Add to an atomic variable.
601+
*
602+
* This function also acts as a full memory barrier.
603+
*
604+
* ***Note: If you don't know what this function is for, you shouldn't use
605+
* it!***
606+
*
607+
* \param a a pointer to an SDL_AtomicU32 variable to be modified.
608+
* \param v the desired value to add or subtract.
609+
* \returns the previous value of the atomic variable.
610+
*
611+
* \threadsafety It is safe to call this function from any thread.
612+
*
613+
* \since This function is available since SDL 3.4.0.
614+
*/
615+
extern SDL_DECLSPEC Uint32 SDLCALL SDL_AddAtomicU32(SDL_AtomicU32 *a, int v);
616+
599617
/**
600618
* Set a pointer to a new value if it is currently an old value.
601619
*

0 commit comments

Comments
 (0)