-
- Downloads
Use RAII instead of new/delete for wrapper temp array
For array and pointer args, the Python wrappers sometimes have to dynamically allocate an array. This patch adds a simple class that uses stack storage for small arrays, heap storage for large arrays, and releases resources upon destruction.
Showing
- Wrapping/PythonCore/vtkPythonArgs.cxx 45 additions, 0 deletionsWrapping/PythonCore/vtkPythonArgs.cxx
- Wrapping/PythonCore/vtkPythonArgs.h 23 additions, 0 deletionsWrapping/PythonCore/vtkPythonArgs.h
- Wrapping/Tools/vtkWrapPythonMethod.c 97 additions, 143 deletionsWrapping/Tools/vtkWrapPythonMethod.c
Loading
Please register or sign in to comment