You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
26 lines
624 B
C
26 lines
624 B
C
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IncludePython.h"
|
|
#include "CoreMinimal.h"
|
|
|
|
#if WITH_PYTHON
|
|
|
|
enum class EPyConversionMethod : uint8
|
|
{
|
|
/** Copy the value */
|
|
Copy,
|
|
/** Steal the value (or fallback to Copy) */
|
|
Steal,
|
|
/** Reference the value from the given owner (or fallback to Copy) */
|
|
Reference,
|
|
};
|
|
|
|
FORCEINLINE void AssertValidPyConversionOwner(PyObject* InPyOwner, const EPyConversionMethod InMethod)
|
|
{
|
|
checkf(InPyOwner || InMethod != EPyConversionMethod::Reference, TEXT("EPyConversionMethod::Reference requires a valid owner object"));
|
|
}
|
|
|
|
#endif // WITH_PYTHON
|