diff options
-rw-r--r-- | eval.c | 1 | ||||
-rw-r--r-- | lib.c | 5 | ||||
-rw-r--r-- | lib.h | 1 |
3 files changed, 7 insertions, 0 deletions
@@ -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)); @@ -6161,6 +6161,11 @@ val interp_fun_p(val obj) return (functionp(obj) && obj->f.functype == FINTERP) ? t : nil; } +val vm_fun_p(val obj) +{ + return (functionp(obj) && obj->f.functype == FVM) ? t : nil; +} + static noreturn void callerror(val fun, val msg) { uses_or2; @@ -901,6 +901,7 @@ val func_get_env(val fun); val func_set_env(val fun, val env); val functionp(val); val interp_fun_p(val); +val vm_fun_p(val); val generic_funcall(val fun, struct args *); val funcall(val fun); val funcall1(val fun, val arg); |