Commit a52f83fd authored by Brad King's avatar Brad King
Browse files

COMP: Added definition of VTK_WRAPPING_CXX to the top of all generated wrapper...

COMP: Added definition of VTK_WRAPPING_CXX to the top of all generated wrapper .cxx files.  Using the definition to silence deprecation warnings on wrapped calls to legacy methods.
parent be0bb546
......@@ -685,7 +685,7 @@ virtual double *Get##name() \
#if defined(VTK_LEGACY_REMOVE)
// Remove legacy methods completely.
# define VTK_LEGACY(method)
#elif defined(VTK_LEGACY_SILENT)
#elif defined(VTK_LEGACY_SILENT) || defined(VTK_WRAPPING_CXX)
// Provide legacy methods with no warnings.
# define VTK_LEGACY(method) method
#else
......
......@@ -791,6 +791,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
int i;
fprintf(fp,"// java wrapper for %s object\n//\n",data->ClassName);
fprintf(fp,"#define VTK_WRAPPING_CXX\n");
if (strcmp("vtkObject",data->ClassName) != 0)
{
/* Block inclusion of full streams. */
......
......@@ -1039,6 +1039,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
int i;
fprintf(fp,"// python wrapper for %s object\n//\n",data->ClassName);
fprintf(fp,"#define VTK_WRAPPING_CXX\n");
if (strcmp("vtkObjectBase",data->ClassName) != 0)
{
/* Block inclusion of full streams. */
......
......@@ -516,6 +516,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
int i,j;
fprintf(fp,"// tcl wrapper for %s object\n//\n",data->ClassName);
fprintf(fp,"#define VTK_WRAPPING_CXX\n");
if (strcmp("vtkObjectBase",data->ClassName) != 0)
{
/* Block inclusion of full streams. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment