mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
Add intrinsic for foreign-call
* libguile/Makefile.am (noinst_HEADERS, modinclude_HEADERS): Change to not install intrinsics.h. * libguile/intrinsics.h: Add an error if BUILDING_LIBGUILE isn't set, to catch any stray bad inclusions. Add intrinsic for foreign-call. * libguile/foreign.c (foreign_call): Rename from scm_i_foreign_call, and set as the foreign-call intrinsic. * libguile/vm-engine.c (foreign-call): Use the intrinsic. In the future we'll want to totally revamp the FFI, if we know that a JIT is available!
This commit is contained in:
parent
4a2d78b4d4
commit
5448e5a4b0
5 changed files with 19 additions and 17 deletions
|
@ -645,7 +645,7 @@ VM_NAME (scm_i_thread *thread, jmp_buf *registers, int resume)
|
|||
pointer = SCM_PROGRAM_FREE_VARIABLE_REF (closure, ptr_idx);
|
||||
|
||||
SYNC_IP ();
|
||||
ret = scm_i_foreign_call (cif, pointer, &err, sp);
|
||||
ret = scm_vm_intrinsics.foreign_call (cif, pointer, &err, sp);
|
||||
CACHE_SP ();
|
||||
|
||||
ALLOC_FRAME (3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue