summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-07 09:15:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-07 09:15:04 -0700
commit898d9905a6225f205e17b469efed1cdfddfd81b9 (patch)
tree70f00c9607b97fefb0c931c129fb8c66f432c765 /eval.c
parent19fd3737ddabf50fb4a94e3be2c0fb5529b7c1e8 (diff)
downloadtxr-898d9905a6225f205e17b469efed1cdfddfd81b9.tar.gz
txr-898d9905a6225f205e17b469efed1cdfddfd81b9.tar.bz2
txr-898d9905a6225f205e17b469efed1cdfddfd81b9.zip
lib: new function vm-fun-p.
* eval.c (eval_init): vm-fun-p intrinsic registered. * lib.c (vm_fun_p): New function. * lib.h (vm_fun_p): Declared.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index a41d362a..d4973217 100644
--- a/eval.c
+++ b/eval.c
@@ -6668,6 +6668,7 @@ void eval_init(void)
reg_fun(intern(lit("func-set-env"), user_package), func_n2(func_set_env));
reg_fun(intern(lit("functionp"), user_package), func_n1(functionp));
reg_fun(intern(lit("interp-fun-p"), user_package), func_n1(interp_fun_p));
+ reg_fun(intern(lit("vm-fun-p"), user_package), func_n1(vm_fun_p));
reg_fun(intern(lit("ctx-form"), system_package), func_n1(ctx_form));
reg_fun(intern(lit("ctx-name"), system_package), func_n1(ctx_name));