Ryan Joseph <r...@thealchemistguild.com> schrieb am Di., 31. Juli 2018, 22:29:
> > > > On Jul 31, 2018, at 9:56 AM, Ryan Joseph <r...@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 >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel