h2pas problem: multi-line macros

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

h2pas problem: multi-line macros

leledumbo
Administrator
Currently h2pas can't understand multi-line macros (that means, including preprocessors), even the wiki doesn't mention it at all. Is this planned? And what's the temporary solution?
Reply | Threaded
Open this post in threaded view
|

Re: h2pas problem: multi-line macros

Mattias Gaertner
On Fri, 11 Jul 2008 05:34:32 -0700 (PDT)
leledumbo <[hidden email]> wrote:

>
> Currently h2pas can't understand multi-line macros (that means,
> including preprocessors), even the
> http://wiki.lazarus.freepascal.org/Common_problems_when_converting_C_header_files
> wiki  doesn't mention it at all. Is this planned? And what's the
> temporary solution?

Multiline macros are normally too complex to convert automatically
anyway. So commenting them and manual conversion is often the best
solution.

I started another h2pas tool using the codetools. It is in an early
stage, but it has already some advantages, including reading multi
line macros. See

lazarus/components/codetools/h2pastest.lpi


Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal