UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MacProgramDelegate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7using ProgramMainType=int32(*)(const TCHAR *);
9
11{
12 // the main function for the program (shared with other platforms)
15 // the function to run at exit time, on the game thread (very probagly FEngineLoop::Exit)
18 // the commandline made from argv, but a subclass could modify it
19 FString SavedCommandLine;
21
22
23
24-(id)initWithProgramMain:(ProgramMainType)programMain programExit:(ProgramExitType)programExit;
25
26+(int)mainWithArgc:(int)argc argv:(char*[])argv programMain:(ProgramMainType)programMain programExit:(ProgramExitType)programExit;
27+(int)mainWithArgc:(int)argc argv:(char*[])argv existingDelegate:(MacProgramDelegate*)delegate;
28
29@end
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void(*)() ProgramExitType
Definition MacProgramDelegate.h:8
int32(*)(const TCHAR *) ProgramMainType
Definition MacProgramDelegate.h:7
Definition MacProgramDelegate.cpp:9
ProgramExitType ProgramExit
Definition MacProgramDelegate.h:17
FString SavedCommandLine
Definition MacProgramDelegate.h:20
ProgramMainType ProgramMain
Definition MacProgramDelegate.h:14