table of contents
other versions
SDL_APP_SUCCESS(3) | SDL3 FUNCTIONS | SDL_APP_SUCCESS(3) |
NAME¶
SDL_APP_SUCCESS - Value that requests termination with success from the main callbacks.
HEADER FILE¶
Defined in SDL3/SDL_main.h
SYNOPSIS¶
#include "SDL3/SDL.h"
#define SDL_APP_SUCCESS 1
DESCRIPTION¶
If SDL_AppInit , SDL_AppEvent , or
SDL_AppIterate
returns this value, the program will terminate and report success to the
operating system.
What that success looks like is platform-dependent. On Unix, for example, the process error code will be zero.
This is always 1; using this macro may be clearer, but is not required.
AVAILABILITY¶
This macro is available since SDL 3.0.0.
SDL 3.1.2 | Simple Directmedia Layer |