Scroll to navigation

SDL_APP_FAILURE(3) SDL3 FUNCTIONS SDL_APP_FAILURE(3)

NAME

SDL_APP_FAILURE - Value that requests termination with error from the main callbacks.

HEADER FILE

Defined in SDL3/SDL_main.h

SYNOPSIS

#include "SDL3/SDL.h"
#define SDL_APP_FAILURE -1

DESCRIPTION

If SDL_AppInit , SDL_AppEvent , or

SDL_AppIterate
returns this value, the program will terminate and report failure to the operating system.

What that failure looks like is platform-dependent. On Unix, for example, the process error code will be non-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