[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A question about scm_guard()
From: |
Rients van Wijngaarden |
Subject: |
A question about scm_guard() |
Date: |
Tue, 6 Dec 2005 16:46:09 +0100 (CET) |
User-agent: |
SquirrelMail/1.4.5 |
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)
- A question about scm_guard(),
Rients van Wijngaarden <=