On Sun, 19 Apr 2015 23:38:47 +0000, Freddy wrote:

> C libraries have a pattern of ----
> HiddenType* getObj();
> void freeObj(HiddenType*);
> ----
> Is there any way I can make the GC search for a "HiddenType*" and run
> "freeObj" when the pointer is not found.

wrap it in class/struct and run `freeObj()` in destructor.

Attachment: signature.asc
Description: PGP signature

Reply via email to