aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-12-23 09:04:24 +0100
committerAndrea Corallo2020-01-01 11:38:15 +0100
commitfd3c00ff92826b466a3292a05072eb5b4f23a701 (patch)
tree6e944c04904645ad633b5b30c345c8af0db15aeb /src/data.c
parent0a74771ee9c406cf98d391378340c79645c88d52 (diff)
downloademacs-fd3c00ff92826b466a3292a05072eb5b4f23a701.tar.gz
emacs-fd3c00ff92826b466a3292a05072eb5b4f23a701.zip
add subr-native-compilation-unit primitive
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index 73ddb021e23..70f8a8f2c1a 100644
--- a/src/data.c
+++ b/src/data.c
@@ -867,13 +867,22 @@ SUBR must be a built-in function. */)
867} 867}
868 868
869#ifdef HAVE_NATIVE_COMP 869#ifdef HAVE_NATIVE_COMP
870DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1, 0, 870DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1,
871 doc: /* Return t if the object is native compiled lisp function, 871 0, doc: /* Return t if the object is native compiled lisp function,
872nil otherwise. */) 872nil otherwise. */)
873 (Lisp_Object object) 873 (Lisp_Object object)
874{ 874{
875 return SUBRP_NATIVE_COMPILEDP (object) ? Qt : Qnil; 875 return SUBRP_NATIVE_COMPILEDP (object) ? Qt : Qnil;
876} 876}
877
878DEFUN ("subr-native-comp-unit", Fsubr_native_comp_unit,
879 Ssubr_native_comp_unit, 1, 1, 0,
880 doc: /* Return the native compilation unit. */)
881 (Lisp_Object subr)
882{
883 CHECK_SUBR (subr);
884 return XSUBR (subr)->native_comp_u;
885}
877#endif 886#endif
878 887
879DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, 888DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,
@@ -4002,6 +4011,7 @@ syms_of_data (void)
4002 defsubr (&Ssubr_name); 4011 defsubr (&Ssubr_name);
4003#ifdef HAVE_NATIVE_COMP 4012#ifdef HAVE_NATIVE_COMP
4004 defsubr (&Ssubr_native_elisp_p); 4013 defsubr (&Ssubr_native_elisp_p);
4014 defsubr (&Ssubr_native_compilation_unit);
4005#endif 4015#endif
4006#ifdef HAVE_MODULES 4016#ifdef HAVE_MODULES
4007 defsubr (&Suser_ptrp); 4017 defsubr (&Suser_ptrp);