diff options
| author | Andrea Corallo | 2019-09-18 12:46:45 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:37:50 +0100 |
| commit | 9709ff1436d547664e6b3ca252cd37665467b4de (patch) | |
| tree | d59cf731c0ff6cab131b8818c0d2fad1e23cca52 /src/data.c | |
| parent | bd3cd579cb43ace253e245a7026b172f216f3a1f (diff) | |
| download | emacs-9709ff1436d547664e6b3ca252cd37665467b4de.tar.gz emacs-9709ff1436d547664e6b3ca252cd37665467b4de.zip | |
add native_elisp field into Lisp_Subr
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 14 |
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 | ||
| 868 | DEFUN ("subr-native-elispp", Fsubr_native_elispp, Ssubr_native_elispp, 1, 1, 0, | ||
| 869 | doc: /* Return t if the subr is native compiled elisp, | ||
| 870 | nil otherwise. */) | ||
| 871 | (Lisp_Object subr) | ||
| 872 | { | ||
| 873 | CHECK_SUBR (subr); | ||
| 874 | return XSUBR (subr)->native_elisp ? Qt : Qnil; | ||
| 875 | } | ||
| 876 | #endif | ||
| 877 | |||
| 867 | DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, | 878 | DEFUN ("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. |
| 869 | If CMD is not a command, the return value is nil. | 880 | If 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 |