[fpc-devel] FreeInstance

Sven Barth pascaldragon at googlemail.com
Wed Aug 1 17:17:07 CEST 2018


Ryan Joseph <ryan at thealchemistguild.com> schrieb am Di., 31. Juli 2018,
22:29:

>
>
> > On Jul 31, 2018, at 9:56 AM, Ryan Joseph <ryan at thealchemistguild.com>
> wrote:
> >
> > then how does it get invoked then? there must be some node added
> somewhere but I can’t find it.
>
> I’m still trying to find this with no luck. I suspect there’s a call node
> added when the compiler detects a destructor was called (maybe in ncal.pas
> or similar node unit) but I have no idea where. Any ideas?
>

Search the compiler's source for the string 'FREEINSTANCE'; you'll find two
locations, one in ngenutil and one in psub. The latter is the one you want.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180801/36b17a2a/attachment.html>


More information about the fpc-devel mailing list