Skip to content

Commit 6d2ad42

Browse files
committed
added PROP_IS_OUT_PARAM macro
1 parent 85bf511 commit 6d2ad42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/UnrealEnginePython/Private/UEPyModule.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#include "Wrappers/UEPyFColor.h"
1515
#include "Wrappers/UEPyFLinearColor.h"
1616

17+
// returns true if the given UProperty is a function output parameter (some function parameters are incorrectly
18+
// marked as output parameters, but if they are also marked as const refs, then they are actually input parameters)
19+
#define PROP_IS_OUT_PARAM(prop) ((prop)->HasAllPropertyFlags(CPF_Parm|CPF_OutParm) && !(prop)->HasAllPropertyFlags(CPF_ReferenceParm|CPF_ConstParm))
1720

1821

1922
UWorld *ue_get_uworld(ue_PyUObject *);

0 commit comments

Comments
 (0)