FGenericPlatformMisc::RequestExitWithStatus

Requests application exit with a specified return code.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp

Syntax

static void RequestExitWithStatus
(
    bool Force,
    uint8 ReturnCode
)

Remarks

Requests application exit with a specified return code. Name is different from RequestExit() so overloads of just one of functions are possible.

Parameters

Parameter

Description

Force

If true, perform immediate exit (dangerous because config code isn't flushed, etc). If false, request clean main-loop exit from the platform specific code.

ReturnCode

This value will be returned from the program (on the platforms where it's possible). Limited to 0-255 to conform with POSIX.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss