Files
SDL/include/SDL3
Daniel Gibson 823b218051 Simplify code to include SDL_main_impl.h in SDL_main.h
Basically all platforms where SDL_main.h renames main() to SDL_main()
use the platform-specific main() (or WinMain() or whatever)
implementations in SDL_main_impl.h - and that renaming is enabled with:
  #if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE) \
      || defined(SDL_MAIN_USE_CALLBACKS)
    #define main SDL_main
  #endif

The only exception is Android, where main() *is* renamed, but
SDL_main_impl.h isn't used, because SDL_main() is called from Java.

So I think it's cleaner and less error-prone (for adding additional
platforms that need SDL_main() in the future), to use the same check
for including SDL_main_impl.h as is used for `#define main SDL_main`
and only list the exceptions (currently Android) there explicitly.

If new platforms like Android turn up, they can easily be added there
by inserting "|| defined(SDL_PLATFORM_WEIRDPLATFORM)" right next
to the Android check.

See also https://github.com/libsdl-org/SDL/issues/11068#issuecomment-2399907535
2024-10-08 11:47:33 -07:00
..
2024-09-21 10:39:53 -07:00
2024-10-02 19:28:35 +00:00
2024-09-18 15:33:11 +00:00
2024-10-08 16:50:41 +00:00
2024-09-27 14:10:46 -07:00
2024-09-18 15:33:11 +00:00
2024-09-27 21:11:58 +00:00
2024-10-04 13:27:13 -07:00
2024-09-18 15:33:11 +00:00
2024-10-06 18:31:17 +00:00
2024-09-18 15:33:11 +00:00
2024-10-04 20:27:58 +00:00
2024-10-01 18:00:22 -07:00
2024-10-08 13:59:10 +00:00
2024-09-21 10:43:34 -07:00
2024-10-01 16:16:44 +00:00
2024-07-28 07:24:21 -07:00
2024-09-18 15:33:11 +00:00
2024-09-18 15:33:11 +00:00
2024-09-18 15:33:11 +00:00
2024-10-04 16:14:38 +00:00
2024-09-27 08:16:49 -07:00
2024-08-29 17:33:52 -07:00
2024-10-01 10:24:17 -04:00
2024-05-17 17:09:09 -07:00
2024-10-04 19:50:14 +00:00
2024-10-04 20:24:40 +00:00
2024-09-18 15:33:11 +00:00
2024-10-04 20:38:03 +00:00
2024-10-01 09:20:00 -07:00
2024-09-28 16:55:09 -07:00
2024-09-28 16:55:09 -07:00
2024-10-04 15:58:03 +00:00
2024-09-18 15:33:11 +00:00
2024-09-18 15:33:11 +00:00
2024-10-08 17:06:41 +00:00
2024-10-04 16:55:50 -04:00