---
name: "SDL_AppResult"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_AppResult"
---

# SDL\_AppResult(3type)

Return values for optional main callbacks.

## NAME

SDL\_AppResult - Return values for optional main callbacks.

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef enum SDL\_AppResult** **{**     **SDL\_APP\_CONTINUE,   /\*\*\< Value that requests that the app continue from the main callbacks. \*/**     **SDL\_APP\_SUCCESS,    /\*\*\< Value that requests termination with success from the main callbacks. \*/**     **SDL\_APP\_FAILURE     /\*\*\< Value that requests termination with error from the main callbacks. \*/** **} SDL\_AppResult;**

## DESCRIPTION

Returning  **SDL\_APP\_SUCCESS**\
  or

**SDL\_APP\_FAILURE**\
  from  **SDL\_AppInit** ,

**SDL\_AppEvent** , or  **SDL\_AppIterate**\
  will terminate the program and report success/failure to the operating system. What that means is platform-dependent. On Unix, for example, on success, the process error code will be zero, and on failure it will be 1. This interface doesn't allow you to return specific exit codes, just whether there was an error generally or not.

Returning  **SDL\_APP\_CONTINUE**\
  from these functions will let the app continue to run.

See

Main callbacks in SDL3 ⟨URL: https://wiki.libsdl.org/SDL3/README/main-functions#main-callbacks-in-sdl3 ⟩

for complete details.

## AVAILABILITY

This enum is available since SDL 3.2.0.
