Home
last modified time | relevance | path

Searched refs:m_py_obj (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/gnu/llvm/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp81 if (m_py_obj && Py_IsInitialized()) { in Reset()
87 Py_DECREF(m_py_obj); in Reset()
91 m_py_obj = nullptr; in Reset()
95 if (!m_py_obj) in AsLongLong()
98 long long r = PyLong_AsLongLong(m_py_obj); in AsLongLong()
105 if (!m_py_obj) in AsUnsignedLongLong()
108 long long r = PyLong_AsUnsignedLongLong(m_py_obj); in AsUnsignedLongLong()
116 if (!m_py_obj) in AsModuloUnsignedLongLong()
119 unsigned long long r = PyLong_AsUnsignedLongLongMask(m_py_obj); in AsModuloUnsignedLongLong()
132 if (m_py_obj) { in Dump()
[all …]
H A DPythonDataObjects.h229 m_py_obj = py_obj;
234 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed)
235 Py_XINCREF(m_py_obj);
239 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {}
242 m_py_obj = rhs.m_py_obj;
243 rhs.m_py_obj = nullptr;
251 if (m_py_obj)
252 _PyObject_Dump(m_py_obj);
259 PyObject *get() const { return m_py_obj; }
262 PyObject *result = m_py_obj;
[all …]