Home
last modified time | relevance | path

Searched refs:PythonInteger (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp84 PythonInteger long_value(PyRefType::Owned, PyLong_FromLong(3)); in TEST_F()
88 PythonInteger borrowed_long(PyRefType::Borrowed, long_value.get()); in TEST_F()
171 EXPECT_TRUE(PythonInteger::Check(py_int)); in TEST_F()
172 PythonInteger python_int(PyRefType::Owned, py_int); in TEST_F()
181 EXPECT_TRUE(PythonInteger::Check(py_long)); in TEST_F()
182 PythonInteger python_long(PyRefType::Owned, py_long); in TEST_F()
192 PythonInteger constructed_int(7); in TEST_F()
298 PythonInteger integer(7); in TEST_F()
323 list_items[0] = PythonInteger(long_value0); in TEST_F()
335 EXPECT_TRUE(PythonInteger::Check(chk_value1.get())); in TEST_F()
[all …]
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp77 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsLongLong()
93 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsUnsignedLongLong()
110 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsModuloUnsignedLongLong()
169 if (PythonInteger::Check(m_py_obj)) in GetObjectType()
268 return PythonInteger(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
484 PythonInteger::PythonInteger(int64_t value) { SetInteger(value); } in PythonInteger() function in PythonInteger
486 bool PythonInteger::Check(PyObject *py_obj) { in Check()
499 void PythonInteger::Convert(PyRefType &type, PyObject *&py_obj) { in Convert()
527 void PythonInteger::SetInteger(int64_t value) { in SetInteger()
528 *this = Take<PythonInteger>(PyLong_FromLongLong(value)); in SetInteger()
[all …]
DPythonDataObjects.h71 class PythonInteger; variable
485 class PythonInteger : public TypedPythonObject<PythonInteger> {
489 PythonInteger() : TypedPythonObject() {} // MSVC requires this for some reason
491 explicit PythonInteger(int64_t value);
/external/llvm-project/lldb/bindings/python/
Dpython-wrapper.swig645 ret_val = unwrapOrSetPythonException(As<long long>(pfunc.Call(PythonInteger(max))));
675 PythonObject result = pfunc(PythonInteger(idx));