[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C error-returning functions and Guile exceptions
From: |
Ludovic Courtès |
Subject: |
Re: C error-returning functions and Guile exceptions |
Date: |
Tue, 15 Mar 2005 15:44:18 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) |
Hi,
Andreas Rottmann <address@hidden> writes:
> OK, this can be done in G-Wrap without any modification. I've added a
> test for this behaviour - see
> address@hidden/g-wrap--dev--0--patch-14 [0]. This works by
> creating a new type that does the aproriate checking on the result of
> the function. A few important points:
>
> (needs-result-var? TYPE) must return false, so no value is returned in
> the Scheme wrapper.
Cool, this plus using `out' arguments fixes part of my problem.
Now, I need to see how to map a `char *'-`size_t' pair of arguments into
an SRFI-4 u8 vector...
Thanks!
Ludovic.