[fpc-pascal] h2pas fails on c++ header file

Sven Barth pascaldragon at googlemail.com
Thu Jan 31 19:00:37 CET 2019


Am Do., 31. Jan. 2019, 17:38 hat Giuliano Colla <
giuliano.colla at fastwebnet.it> geschrieben:

> Il 30/01/2019 13:17, Marco van de Voort ha scritto:
>
> >
> > Op 1/30/2019 om 11:57 AM schreef Giuliano Colla:
> >>
> >> What I'm doing wrong?
> >>
> > Using a C header converter or a C++ header file.   & is not proper C.
> >
>
> That is because h2pas is unable to handle it, or because fpc is unable
> to generate the proper code for a c++ parameter by reference
>

The former. For the later you'd either use var or constref. Though there'd
still be the topic of name mangling... (FPC's cppdecl is not that good yet)

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190131/9a0bd69d/attachment.html>


More information about the fpc-pascal mailing list