mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
Add scm_make_foreign_object_0; optimize scm_make_foreign_object_n.
* libguile/foreign-object.c (scm_make_foreign_object_0): New function. (scm_make_foreign_object_n): Pre-fetch layout_chars. * libguile/foreign-object.h: Add scm_make_foreign_object_0.
This commit is contained in:
parent
a7ee7f7cbf
commit
ea4c2460e0
2 changed files with 10 additions and 1 deletions
|
@ -32,6 +32,7 @@ SCM_API SCM scm_make_foreign_object_type (SCM name, SCM slot_names,
|
|||
|
||||
SCM_API void scm_assert_foreign_object_type (SCM type, SCM val);
|
||||
|
||||
SCM_API SCM scm_make_foreign_object_0 (SCM type);
|
||||
SCM_API SCM scm_make_foreign_object_1 (SCM type, scm_t_bits val0);
|
||||
SCM_API SCM scm_make_foreign_object_2 (SCM type, scm_t_bits val0,
|
||||
scm_t_bits val1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue