Skip to content
Snippets Groups Projects
Commit ee2c9bff authored by David Gobbi's avatar David Gobbi
Browse files

Properly wrap array reference parameters

This small change allows wrapping of "T (&a)[N]" array parameters,
such as "float (&a)[3]" or "char (&a)[256]".   These are now
wrapped as size-checked Python-sequence to C++-array conversions.
parent 3e768b6d
Branches
No related tags found
No related merge requests found
......@@ -1000,7 +1000,9 @@ static void vtkWrapPython_WriteBackToArgs(FILE* fp, ClassInfo* data, FunctionInf
n = 1;
}
if (vtkWrap_IsNonConstRef(arg) && !vtkWrap_IsStdVector(arg) && !vtkWrap_IsObject(arg))
/* the "arg->Count == 0" keeps this "if" from capturing "T (&a)[N]" */
if (vtkWrap_IsNonConstRef(arg) && !vtkWrap_IsStdVector(arg) && !vtkWrap_IsObject(arg) &&
arg->Count == 0)
{
fprintf(fp,
" if (!ap.ErrorOccurred())\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment