Files
UnrealEngineUWP/Engine/Source/Developer/CrashDebugHelper/Private/CrashDebugHelperModule.cpp
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00

49 lines
972 B
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "CrashDebugHelperModule.h"
#include "Logging/LogMacros.h"
#include "Modules/ModuleManager.h"
#include "CrashDebugHelperPrivate.h"
IMPLEMENT_MODULE(FCrashDebugHelperModule, CrashDebugHelper);
DEFINE_LOG_CATEGORY(LogCrashDebugHelper);
#if PLATFORM_WINDOWS
#include "CrashDebugHelperWindows.h"
#elif PLATFORM_LINUX
#include "Linux/CrashDebugHelperLinux.h"
#elif PLATFORM_MAC
#include "CrashDebugHelperMac.h"
#elif PLATFORM_IOS
#include "CrashDebugHelperIOS.h"
#else
#error "Unknown platform"
#endif
void FCrashDebugHelperModule::StartupModule()
{
CrashDebugHelper = new FCrashDebugHelper();
if (CrashDebugHelper != nullptr)
{
CrashDebugHelper->Init();
}
}
void FCrashDebugHelperModule::ShutdownModule()
{
if (CrashDebugHelper != nullptr)
{
delete CrashDebugHelper;
CrashDebugHelper = nullptr;
}
}
ICrashDebugHelper* FCrashDebugHelperModule::Get()
{
return CrashDebugHelper;
}