UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnixCommonStartup.h File Reference
#include "CoreMinimal.h"
#include "HAL/Platform.h"

Go to the source code of this file.

Functions

int UNIXCOMMONSTARTUP_API CommonUnixMain (int argc, char *argv[], int(*RealMain)(const TCHAR *CommandLine), void(*AppExitCallback)()=nullptr)
 CommonUnixMain - executes common startup code for Unix programs/engine.
 

Function Documentation

◆ CommonUnixMain()

int UNIXCOMMONSTARTUP_API CommonUnixMain ( int  argc,
char argv[],
int(*)(const TCHAR *CommandLine RealMain,
void(*)()  AppExitCallback = nullptr 
)

CommonUnixMain - executes common startup code for Unix programs/engine.

Parameters
argc- number of arguments in argv[]
argv- array of arguments
RealMain- the next main routine to call in chain
AppExitCallback- workaround for Launch module that needs to call FEngineLoop::AppExit() at certain point
Returns
error code to return to the OS