summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-06 22:05:06 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-06 22:05:06 (GMT)
commita4eebcb5b179aa1833c844a7a5f083ef5d002690 (patch)
tree53fc4ad01a00aed89732f27f6df03b4e68a85aeb /Source/cmVTKWrapTclCommand.cxx
parent29058923349566477620c905c3ac5d150518cedc (diff)
downloadCMake-a4eebcb5b179aa1833c844a7a5f083ef5d002690.zip
CMake-a4eebcb5b179aa1833c844a7a5f083ef5d002690.tar.gz
CMake-a4eebcb5b179aa1833c844a7a5f083ef5d002690.tar.bz2
ERR: Fix for borland in generated code. vtkCommand is ambiguously both a function and a class.
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");
}