[PPL-devel] Re: [Yap-users] Throwing Prolog exceptions from C code
Vitor Santos Costa
vitor at biostat.wisc.edu
Fri Jun 14 23:47:09 CEST 2002
>
> I don't know if I am doing something stupid but,
> in order to throw a Prolog exception with term t
> from C code, I create the Term `throw(t)' and then
> I pass it to YapCallProlog().
> Everything fails horribly and I have no idea why.
> I append a stack trace hoping it may be enlightening
> for someone.
That looks like a nasty bug :-(.
I know it's not in the Manual, but have you tried using
YapThrow(t)
from the C-code?
Cheers,
Vitor
More information about the PPL-devel
mailing list