Carl Åstholm
d6caf2abe7
Remove SDL_RESTRICT in favor of doc comments
2024-09-09 13:51:16 -07:00
Ryan C. Gordon
ac08dde1b2
windows: Clean out things that should be using defined(SDL_PLATFORM_WINDOWS)
.
2024-09-06 13:28:39 -04:00
Ryan C. Gordon
154452a726
winrt: Removed WinRT/Windows Phone/UWP support.
...
Fixes #10724 .
2024-09-06 13:28:39 -04:00
Anonymous Maarten
55934bc85e
include: add SDL_RESTRICT for restricted pointer aliasing
2024-09-06 01:35:43 +02:00
Sam Lantinga
383ccb2b6a
Finish removing SDL_DECLSPEC_FREE
2024-07-28 08:06:20 -07:00
Sam Lantinga
b5ad74998b
Removed SDL_DECLSPEC_FREE
2024-07-28 07:24:21 -07:00
Sam Lantinga
4f55271571
Removed temporary memory from the API
...
It was intended to make the API easier to use, but various automatic garbage collection all had flaws, and making the application periodically clean up temporary memory added cognitive load to using the API, and in many cases was it was difficult to restructure threaded code to handle this.
So, we're largely going back to the original system, where the API returns allocated results and you free them.
In addition, to solve the problems we originally wanted temporary memory for:
* Short strings with a finite count, like device names, get stored in a per-thread string pool.
* Events continue to use temporary memory internally, which is cleaned up on the next event processing cycle.
2024-07-26 20:59:14 -07:00
Sam Lantinga
5e513ecc7f
Don't automatically free temporary memory, let the application call SDL_FreeTemporaryMemory() when it's ready.
...
Also mark up all functions that return temporary memory with SDL_DECLSPEC_TEMP, to help people implementing language bindings.
Fixes https://github.com/libsdl-org/SDL/issues/10378
2024-07-26 10:05:03 -07:00
Ryan C. Gordon
ecfa363889
begin_code: Solaris Studio has __has_attribute
defined by isn't usable here.
...
Fixes #10095 .
(cherry picked from commit d96f1d5360
)
2024-06-27 22:13:48 -07:00
Ryan C. Gordon
8e782602de
wikiheaders: Fixes and cleanups to fix SDL_ReportAssertion's wiki page.
2024-06-11 11:29:44 -04:00
Sam Lantinga
6f2621438a
Renamed DECLSPEC to SDL_DECLSPEC
2024-05-17 17:09:09 -07:00
vittorioromeo
a69eaae32e
Add SDL_NODISCARD
macro to SDL_begin_code.h
2024-05-16 17:08:52 -07:00
Ryan C. Gordon
5e6d85b8f0
wikiheaders: bridge wiki Category docs to the headers!
...
Did an initial cleanup on the headers and wrote a few pieces of documentation,
but this needs more work to fill out the documentation.
2024-05-16 11:48:23 -04:00
Ryan C. Gordon
62a7e419f7
wikiheaders: Automatically categorize API symbols by subsystem.
2024-05-14 13:30:42 -04:00
Anonymous Maarten
31d133db40
Define SDL_PLATFORM_* macros instead of underscored ones ( #8875 )
2024-01-24 01:40:51 +00:00
Sam Lantinga
5b3ee51c6c
Updated copyright for 2024
2024-01-01 13:15:26 -08:00
Anonymous Maarten
917e036f6f
MSVC has __declspec(deprecated)
2023-08-09 02:54:18 +02:00
Anonymous Maarten
b6ae281e97
Use #ifdef/#ifndef instead of #if defined/#if \!defined
2023-03-30 21:35:01 +00:00
Ozkan Sezer
e7ea47a1b4
add version check to SDL_MALLOC macro (for correctness)
2023-02-03 17:40:40 +03:00
Sam Lantinga
fde78d12f2
Updated copyright for 2023
2023-01-09 09:41:41 -08:00
Sam Lantinga
5dd07a5773
The alloc_size attribute isn't supported in clang 3.x
2023-01-06 12:10:21 -08:00
Sylvain Becker
d7d3c22dbf
Remove more reserved identifiers ( #6925 )
2022-12-29 13:58:16 -08:00
Sylvain Becker
07808d6a03
Remove underscore in guard header defines ( #6922 )
2022-12-27 12:31:12 -08:00
Ryan C. Gordon
3197632347
include: Renamed begin_code.h and close_code.h to have SDL_ prefixes.
...
Fixes #6864 .
2022-12-22 11:39:26 -05:00