------- Comment #14 from thebohemian at gmx dot net  2005-11-08 10:15 -------
> But we don't need to use ffi_call here, we can just call the exception 
> throwing function directly.
Right. That worked fine.

> Then you'll realize that these functions don't need to be separate at all.
Yep. I made the trampoline function the error throwing function now.

> Then you'll realize that you don't need to bother setting up
> the ffi_cif - all you need is the exception argument.
I doubt that this is right. The ffi_prep_closure() needs to know which
arguments are given to it. AFAIK the caller can cast a ffi_closure pointer to
any kind of  function pointer (OK, except varargs).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616

Reply via email to