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

Function vtkPythonGetValue

Wrapping/PythonCore/vtkPythonArgs.cxx:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 } while (false)
40
41inline bool vtkPythonGetValue(PyObject* o, long& a)
42{
43 VTK_PYTHON_FLOAT_CHECK();
44
45 a = PyLong_AsLong(o);
46 return (a != static_cast<long>(-1) || !PyErr_Occurred());
47}
48
49inline bool vtkPythonGetValue(PyObject* o, unsigned long& a)
50{

Callers 2

vtkPythonGetArrayFunction · 0.85
vtkPythonGetNArrayFunction · 0.85

Tested by

no test coverage detected