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

Giuliano Colla giuliano.colla at fastwebnet.it
Fri Feb 1 10:46:18 CET 2019


Il 01/02/2019 10:37, Marco van de Voort ha scritto:

>
> Op 2019-01-31 om 19:00 schreef Sven Barth via fpc-pascal:
>>
>>     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)
>>
> And I guess it should be a simple type, not a smartpointer.

IOW a pure C wrapper around the C++ module would be the only easy way 
out at the moment?

Giuliano

-- 
Do not do to others as you would have them do to you.They might have different tastes.




More information about the fpc-pascal mailing list