summaryrefslogtreecommitdiffstats
path: root/eval.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-08-04 08:45:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-08-04 08:45:00 -0700
commitbfd0947112a317542d77959f0ae224f8e256f9a6 (patch)
tree344af6e6e4270da06ae56e8bf985c684a74ee1b3 /eval.h
parent0abbda4a698bc0f3eb531c6578469c3dff65ad57 (diff)
downloadtxr-bfd0947112a317542d77959f0ae224f8e256f9a6.tar.gz
txr-bfd0947112a317542d77959f0ae224f8e256f9a6.tar.bz2
txr-bfd0947112a317542d77959f0ae224f8e256f9a6.zip
* eval.c (func_get_name): New function.
(bind_args): Include the entire context form in argument mismatch errors. (apply): Include the function name, or else source code if it has no name, in argument mismatch erors. (eval_init): Register func-get-name intrinsic. * eval.h (func_get_name): Declared. * txr.1: Documented func-get-name.
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.h b/eval.h
index 61f20b7e..ea74148d 100644
--- a/eval.h
+++ b/eval.h
@@ -41,6 +41,7 @@ val interp_fun(val env, val fun, val args);
val fboundp(val sym);
val special_operator_p(val sym);
val macro_form_p(val form, val menv);
+val func_get_name(val fun, val env);
void reg_varl(val sym, val val);
void reg_var(val sym, val val);
void reg_fun(val sym, val fun);