summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index c724f5c..d42fd81 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -249,6 +249,10 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
fprintf(fout,"\nTcl_HashTable vtkInstanceLookup;\n");
fprintf(fout,"Tcl_HashTable vtkPointerLookup;\n");
fprintf(fout,"Tcl_HashTable vtkCommandLookup;\n");
+ fprintf(fout,"int vtkCommandForward(ClientData cd, Tcl_Interp *interp,\n"
+ " int argc, char *argv[]){\n"
+ " return vtkCommand(cd, interp, argc, argv);\n"
+ "}\n");
}
else
{
@@ -308,7 +312,7 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
/* create special vtkCommand command */
fprintf(fout," Tcl_CreateCommand(interp,(char *) \"vtkCommand\",\n"
- " reinterpret_cast<vtkTclCommandType>(vtkCommand),\n"
+ " reinterpret_cast<vtkTclCommandType>(vtkCommandForward),\n"
" (ClientData *)NULL, NULL);\n\n");
}