[vtk-developers] Adding support for a macro in wrapper
David Lonie
david.lonie at kitware.com
Wed Mar 11 15:25:40 EDT 2015
On Wed, Mar 11, 2015 at 3:21 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi David,
>
> The wrappers understand but ignore the "using" directive. So, yeah,
> wrapper
> changes would be needed to support it. For example, I have wrapper code on
> github that pulls in the header files for all the superclasses so that it
> can link
> used methods from the superclass namespace.
>
> What was your original macro? In general, the wrappers should be able to
> handle most macros without any problems.
>
I've actually already stripped it out in favor of the much simpler "using"
method. Good to know that simple macros should work -- it's entirely
possible there was some little bug hidden in my macro that was throwing off
the wrappers ;)
Perhaps it was the pattern:
VTK_LEGACY(virtual double* GetBounds()) \
{ \
... \
}
that was causing confusion? I'm not sure if the VTK_LEGACY macro should be
used with an inline definition...
Anyway, it looks like this is all working now :) Thanks for the replies!
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150311/14d3ffae/attachment.html>
More information about the vtk-developers
mailing list