Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

31 lines
560 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <Containers/UnrealString.h>
namespace UE::StylusInput::RealTimeStylus
{
void LogCOMError(const FString& Preamble, HRESULT Result);
inline bool Succeeded(const HRESULT Result, const FString& LogPreamble)
{
if (Result >= 0)
{
return true;
}
LogCOMError(LogPreamble, Result);
return false;
}
inline bool Failed(const HRESULT Result, const FString& LogPreamble)
{
if (Result >= 0)
{
return false;
}
LogCOMError(LogPreamble, Result);
return true;
}
}