aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-09-18 12:46:45 +0200
committerAndrea Corallo2020-01-01 11:37:50 +0100
commit9709ff1436d547664e6b3ca252cd37665467b4de (patch)
treed59cf731c0ff6cab131b8818c0d2fad1e23cca52 /src/data.c
parentbd3cd579cb43ace253e245a7026b172f216f3a1f (diff)
downloademacs-9709ff1436d547664e6b3ca252cd37665467b4de.tar.gz
emacs-9709ff1436d547664e6b3ca252cd37665467b4de.zip
add native_elisp field into Lisp_Subr
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 56e363f16b6..70068c30a71 100644
--- a/src/data.c
+++ b/src/data.c
@@ -864,6 +864,17 @@ SUBR must be a built-in function. */)
864 return build_string (name); 864 return build_string (name);
865} 865}
866 866
867#ifdef HAVE_NATIVE_COMP
868DEFUN ("subr-native-elispp", Fsubr_native_elispp, Ssubr_native_elispp, 1, 1, 0,
869 doc: /* Return t if the subr is native compiled elisp,
870nil otherwise. */)
871 (Lisp_Object subr)
872{
873 CHECK_SUBR (subr);
874 return XSUBR (subr)->native_elisp ? Qt : Qnil;
875}
876#endif
877
867DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, 878DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,
868 doc: /* Return the interactive form of CMD or nil if none. 879 doc: /* Return the interactive form of CMD or nil if none.
869If CMD is not a command, the return value is nil. 880If CMD is not a command, the return value is nil.
@@ -3983,6 +3994,9 @@ syms_of_data (void)
3983 defsubr (&Sbyteorder); 3994 defsubr (&Sbyteorder);
3984 defsubr (&Ssubr_arity); 3995 defsubr (&Ssubr_arity);
3985 defsubr (&Ssubr_name); 3996 defsubr (&Ssubr_name);
3997#ifdef HAVE_NATIVE_COMP
3998 defsubr (&Ssubr_native_elispp);
3999#endif
3986#ifdef HAVE_MODULES 4000#ifdef HAVE_MODULES
3987 defsubr (&Suser_ptrp); 4001 defsubr (&Suser_ptrp);
3988#endif 4002#endif