------------------------------------------------------------------------------ Check if 'm' equals 'n', and report an error for arg i if not.
| 1622 | //------------------------------------------------------------------------------ |
| 1623 | // Check if 'm' equals 'n', and report an error for arg i if not. |
| 1624 | bool vtkPythonArgs::CheckSizeHint(int i, size_t m, size_t n) |
| 1625 | { |
| 1626 | if (this->M + i < this->N) |
| 1627 | { |
| 1628 | if (m != n) |
| 1629 | { |
| 1630 | PyObject* o = PyTuple_GetItem(this->Args, this->M + i); |
| 1631 | return vtkPythonSequenceError(o, n, m); |
| 1632 | } |
| 1633 | } |
| 1634 | return true; |
| 1635 | } |
| 1636 | |
| 1637 | //------------------------------------------------------------------------------ |
| 1638 | // Use stack space for small arrays, heap for large arrays. |
nothing calls this directly
no test coverage detected