Hi,

I'm using guile in combination with C++ and I'm having some trouble with
garbage collection. Now I'm trying to use guards, to circumvent GC.

To make a guardian, I use 'scm_make_guardian([name of the guardian]);' and
all is fine.
The next step is to actually guard some objects, so I try to use:
'scm_guard([name of the guardian], [object to be guarded]);'

according to some sources this should work, but I get a compiling error:
"too few arguments to function `scm_unused_struct*
scm_guard(scm_unused_struct*, scm_unused_struct*, int)'"

so obviously, scm_guard needs a third argument of type int, but my
question is:
What is this int?

I hope somebody can help me...

Rients (the Netherlands)



_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to