Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-07

h2pas problem: multi-line macros

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to leledumbo
Show quoted text 6 lines
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 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

Reply by email