[fpc-pascal] h2pas problem: multi-line macros

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jul 11 14:56:36 CEST 2008


On Fri, 11 Jul 2008 05:34:32 -0700 (PDT)
leledumbo <leledumbo_cool at yahoo.co.id> 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



More information about the fpc-pascal mailing list