Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
Requests application exit with a specified return code. Name is different from RequestExit() so overloads of just one of functions are possible.
| Name | RequestExitWithStatus |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformMisc.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp |
static void RequestExitWithStatus
(
bool Force,
uint8 ReturnCode,
const TCHAR * CallSite
)
Parameters
| Name | Remarks |
|---|---|
| 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. |
| CallSite | a diagnostic message identifying the callsite. |