mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2025-12-06 02:40:26 -08:00
exceptions: dispatch signals exceptions (not conditions)
This commit is contained in:
parent
169c440866
commit
c515363a16
1 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ ecl_function_dispatch(cl_env_ptr env, cl_object x)
|
|||
{
|
||||
cl_object fun = x;
|
||||
if (ecl_unlikely(fun == ECL_NIL))
|
||||
FEundefined_function(x);
|
||||
ecl_ferror(ECL_EX_F_UNDEF, fun, ECL_NIL);
|
||||
switch (ecl_t_of(fun)) {
|
||||
case t_cfunfixed:
|
||||
env->function = fun;
|
||||
|
|
@ -39,7 +39,7 @@ ecl_function_dispatch(cl_env_ptr env, cl_object x)
|
|||
env->function = fun;
|
||||
return fun->bclosure.entry;
|
||||
default:
|
||||
FEinvalid_function(x);
|
||||
ecl_ferror(ECL_EX_F_INVAL, fun, ECL_NIL);
|
||||
}
|
||||
_ecl_unexpected_return();
|
||||
}
|
||||
|
|
@ -731,7 +731,7 @@ APPLY_fixed(cl_narg n, cl_object (*fn)(), cl_object *x)
|
|||
x[50],x[51],x[52],x[53],x[54],x[55],x[56],
|
||||
x[57],x[58],x[59],x[60],x[61],x[62]);
|
||||
default:
|
||||
FEprogram_error("Too many arguments", 0);
|
||||
ecl_ferror(ECL_EX_F_NARGS, ecl_make_fixnum(n), ECL_NIL);
|
||||
}
|
||||
_ecl_unexpected_return();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue