core: Throw exceptions rather than asserts.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 28 Dec 2016 21:26:33 +0000 (22:26 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 28 Dec 2016 21:26:33 +0000 (22:26 +0100)
commitcb1fa49767978008c09ee553217ffbf78fc875cf
treeb17e7cbe877b8882a875ad39347c462342b6eca1
parent2675f711a3387d2b9a9a6ebd893c64a8d8c4d9a1
core: Throw exceptions rather than asserts.

* lib.c (error): Throw instead of assert.
  (check_formals, check_apply): Update.
* mes.c (scm_symbol_unbound_variable, scm_symbol_not_a_pair,
  scm_symbol_system_error, scm_symbol_wrong_number_of_args,
  scm_symbol_wrong_type_arg, scm_symbol_unbound_variable): New symbols.
  (car, cdr, set_cdr_x, set_env_x, eval_apply, gc_up_arena): Update.
lib.c
mes.c