[vtk-developers] New wrapping code fails on no newline at end of file

Marcus D. Hanwell marcus.hanwell at kitware.com
Mon Jul 19 16:12:42 EDT 2010


Hi,

One of the Titan developers discovered today that the new wrapping code
fails with a syntax error if there is no new line at the end of a header
file,

*** SYNTAX ERROR found in parsing the header file

It is right, I think the C/C++ standard states that all source files end
with a newline. Should the wrappers enforce that though? It would be better
to silently deal with it, or produce a clearer error message if at all
possible. The error referred to line 75 of a 71 line header file. I don't
think this used to cause an error, but haven't looked into it very deeply.

Marcus
--
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100719/ce12acf6/attachment.html>


More information about the vtk-developers mailing list