Repository navigation
Expand file tree
/
Copy pathUnrealEnginePythonPrivatePCH.h
More file actions
92 lines (71 loc) · 2.56 KB
/
Copy pathUnrealEnginePythonPrivatePCH.h
File metadata and controls
92 lines (71 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
//#define UEPY_MEMORY_DEBUG 1
#define UEPY_THREADING 1
#include "UnrealEnginePython.h"
// You should place include statements to your module's private header files here. You only need to
// add includes for headers that are used in most of your module's source files though.
#include "Engine.h"
#if WITH_EDITOR
#include "Editor.h"
#endif
#include "Runtime/Launch/Resources/Version.h"
#if defined(UNREAL_ENGINE_PYTHON_ON_MAC)
#include <Headers/Python.h>
#include <Headers/structmember.h>
#elif defined(UNREAL_ENGINE_PYTHON_ON_LINUX)
#include <Python.h>
#include <structmember.h>
#else
#include <Include/Python.h>
#include <Include/structmember.h>
#endif
#include "UEPyModule.h"
#include "Wrappers/UEPyFVector.h"
#include "Wrappers/UEPyFHitResult.h"
#include "Wrappers/UEPyFRotator.h"
#include "Wrappers/UEPyFTransform.h"
#include "Wrappers/UEPyFColor.h"
#include "Wrappers/UEPyFLinearColor.h"
#include "Wrappers/UEPyFSocket.h"
#include "Wrappers/UEPyFQuat.h"
#include "Wrappers/UEPyFRawAnimSequenceTrack.h"
#include "Wrappers/UEPyFRandomStream.h"
#include "Wrappers/UEPyFPythonOutputDevice.h"
#include "Wrappers/UEPyFSoftSkinVertex.h"
#include "Wrappers/UEPyFMorphTargetDelta.h"
#include "Wrappers/UEPyFObjectThumbnail.h"
#include "Wrappers/UEPyFViewportClient.h"
#if WITH_EDITOR
#include "Wrappers/UEPyFEditorViewportClient.h"
#endif
#include "UEPyCallable.h"
#include "UEPyUClassesImporter.h"
#include "UEPyEnumsImporter.h"
#include "UEPyUStructsImporter.h"
#include "UEPyUScriptStruct.h"
#if WITH_EDITOR
#include "Wrappers/UEPyFAssetData.h"
#include "Wrappers/UEPyFARFilter.h"
#include "Wrappers/UEPyFRawMesh.h"
#include "Wrappers/UEPyFStringAssetReference.h"
#include "UObject/UEPyAnimSequence.h"
#include "Blueprint/UEPyEdGraphPin.h"
#include "UEPyIPlugin.h"
#include "CollectionManager/UEPyICollectionManager.h"
#endif
#include "Slate/UEPySlate.h"
#include "Http/UEPyIHttp.h"
#include "ConsoleManager/UEPyIConsoleManager.h"
#include "Voice/UEPyIVoiceCapture.h"
#define ue_py_check(py_u) if (!py_u->ue_object || !py_u->ue_object->IsValidLowLevel() || py_u->ue_object->IsPendingKillOrUnreachable())\
return PyErr_Format(PyExc_Exception, "PyUObject is in invalid state")
#if PY_MAJOR_VERSION < 3
char *PyUnicode_AsUTF8(PyObject *py_str);
int PyGILState_Check();
#endif
bool PyUnicodeOrString_Check(PyObject *py_obj);
#define Py_RETURN_UOBJECT(py_uobj) ue_PyUObject *ret = ue_get_python_wrapper(py_uobj);\
if (!ret)\
return PyErr_Format(PyExc_Exception, "uobject is in invalid state");\
Py_INCREF(ret);\
return (PyObject *)ret;