[fpc-pascal] Question: Is there a global callback, when a thread gets terminated?

2019-02-01 Thread Martin
Lets say you have a unit, with code that can be called from threads. - The code  does not own the thread object, so it can *not* use TThread.OnTerminate (assuming it could get hold of the thread object). - Yet the code wants to use "threadvar" and create objects (or otherwise allocate mem). The

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

2019-02-01 Thread Giuliano Colla
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 eithe

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

2019-02-01 Thread Marco van de Voort
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 to