// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include 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; } }