be more like the interpreter in signalling wrong-num-args
authorAndy Wingo <wingo@pobox.com>
Thu, 2 Oct 2008 09:00:55 +0000 (11:00 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 2 Oct 2008 09:00:55 +0000 (11:00 +0200)
commit9a8cc8e7f736bda93706dc74e6ab8f07621dd341
tree7f156621c5db8b2fe8ce9ebd6cb76036fb26cd29
parent7e91e01dd85ae4a54f7f4c41bbb174fb73cddeeb
be more like the interpreter in signalling wrong-num-args

* libguile/vm-engine.c: Call scm_wrong_num_args in the wrong-num-args
  case, to be more like the interpreter.

* libguile/vm-engine.h (ASSERT): New macro.

* libguile/vm-i-system.c (apply, goto/apply): Assert that nargs >= 2,
  because the compiler should always feed us correct instructions.
  (call/cc): If no values are returned to the continuation, signal
  no_values instead of wrong_num_args.
libguile/vm-engine.c
libguile/vm-engine.h
libguile/vm-i-system.c