[vtk-developers] VTK_LEGACY used on other vtk macros

Ben Boeckel ben.boeckel at kitware.com
Tue Dec 8 15:38:56 EST 2015


On Thu, Dec 03, 2015 at 15:20:58 -0500, Ken Martin wrote:
> So can I use a VTK_LEGACY macro on a vtkGetMacro? Or is that bad cpp karma?
> 
>   VTK_LEGACY(vtkGetMacro(ForceCompileOnly, int));

I don't see any reason why not. There's already all kinds of bad karma
involved with those macros :) . It shouldn't have a semicolon though.

--Ben


More information about the vtk-developers mailing list