This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Gen GC?
Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
> > if you use C++'s new operator and not scm_must_malloc, then you can
> > use the scm_done_malloc(size) to report the size, and then return this
> > size from smob_free().
>
> Where is the corresponding scm_done_free ()? Sometimes I need to take
> over memory management of an object from GUILE.
scm_done_malloc(-size) should do the trick.
--
May all your PUSHes be POPped.