MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkPythonGetLongLongValue

Function vtkPythonGetLongLongValue

Wrapping/PythonCore/vtkPythonArgs.cxx:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template <class T>
58inline bool vtkPythonGetLongLongValue(PyObject* o, T& a)
59{
60 VTK_PYTHON_FLOAT_CHECK();
61
62 PY_LONG_LONG i = PyLong_AsLongLong(o);
63 a = static_cast<T>(i);
64 return (i != static_cast<PY_LONG_LONG>(-1) || !PyErr_Occurred());
65}
66
67template <class T>
68inline bool vtkPythonGetUnsignedLongLongValue(PyObject* o, T& a)

Callers 1

vtkPythonGetValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected