<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 1, 2016 at 10:14 AM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 26 May 2016 10:08:18 -0600, David Gobbi said:<br><br>
>the wrappers.  And I plan to expand this into the following:<br>
><br>
>__VTK_WRAP__                      // pre-defined by all wrapping tools<br>
>__VTK_WRAP_PYTHON___   // pre-defined by vtkWrapPython<br>
><br>
>etc. for the other wrapper tools, so that you know what tool is processing<br>
>the<br>
>header file.<br>
<br>
</span>David,<br>
<br>
If you could get rid of the double underscores while you're at it, that'd be great. :)<br></blockquote><div><br></div><div>I hate to break it to you, but vtkWrapPython pre-defines a whole bunch of</div><div>double-underscore macros.  It has to, otherwise it wouldn't work.</div><div><br></div><div>Examples:</div><div><br></div><div>__STDC__</div><div>__cplusplus</div><div><br></div><div>And on OS X:</div><div><br></div><div>__APPLE__</div><div>__DARWIN__</div><div><br></div><div>It's absolutely necessary for the wrapping tool executables to pre-define</div><div>such macros, because otherwise they cannot mimic a compiler.</div><div><br></div><div>When I see a macro like "VTK_WRAP", I'd assume it's defined in a header</div><div>somewhere.  So the use of __VTK_WRAP__ clearly indicates that the macro is</div><div>pre-defined by the executable.</div><div><br></div><div> - David</div><div><br></div><div><br></div><div><br></div></div></div></div>