summaryrefslogtreecommitdiff
path: root/libguile/vports.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-11-15 23:36:07 +0100
committerAndy Wingo <wingo@pobox.com>2011-11-15 23:36:07 +0100
commitf3cf9421cb319e2cb9ffde4ec41cad7fdcafcebc (patch)
tree57bf3d168cfa8280a727faa2c073bbf2d9fb02e2 /libguile/vports.c
parent020602791b3f929e2d65ffdd8d67977763d6883e (diff)
downloadguile-f3cf9421cb319e2cb9ffde4ec41cad7fdcafcebc.tar.gz
better debuggability for interpreted procedures
* libguile/procprop.c (scm_set_procedure_minimum_arity_x): New function, allows a user to override a function's arity. (scm_i_procedure_arity): Look up in the overrides table first. * libguile/procprop.h: Add scm_set_procedure_minimum_arity_x. * module/ice-9/eval.scm (primitive-eval): Override arity of "general closures". * test-suite/tests/procprop.test ("procedure-arity"): Add tests. Based on a patch from Stefan Israelsson Tampe. Test based on work by Patrick Bernaud.
Diffstat (limited to 'libguile/vports.c')
0 files changed, 0 insertions, 0 deletions