diff options
author | Brad King <brad.king@kitware.com> | 2002-09-06 22:05:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-09-06 22:05:06 (GMT) |
commit | a4eebcb5b179aa1833c844a7a5f083ef5d002690 (patch) | |
tree | 53fc4ad01a00aed89732f27f6df03b4e68a85aeb /Source/cmVTKWrapTclCommand.cxx | |
parent | 29058923349566477620c905c3ac5d150518cedc (diff) | |
download | CMake-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.cxx | 6 |
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"); } |