aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-11-14 21:36:30 +0100
committerAndrea Corallo2020-01-01 11:38:05 +0100
commita1fd3d6eacaf425eadd121dcacee95a26f96505f (patch)
treeb8a86d3cf007bdc57db19fff609ab3b3ed738d3a /src/data.c
parent0f526028b1830e72df1c39220c5efdc7e545885b (diff)
downloademacs-a1fd3d6eacaf425eadd121dcacee95a26f96505f.tar.gz
emacs-a1fd3d6eacaf425eadd121dcacee95a26f96505f.zip
improve subr-native-elisp-p
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c
index 2a32d47c49b..50dce9e4644 100644
--- a/src/data.c
+++ b/src/data.c
@@ -866,12 +866,11 @@ SUBR must be a built-in function. */)
866 866
867#ifdef HAVE_NATIVE_COMP 867#ifdef HAVE_NATIVE_COMP
868DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1, 0, 868DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1, 0,
869 doc: /* Return t if the subr is native compiled elisp, 869 doc: /* Return t if the object is native compiled lisp function,
870nil otherwise. */) 870nil otherwise. */)
871 (Lisp_Object subr) 871 (Lisp_Object object)
872{ 872{
873 CHECK_SUBR (subr); 873 return (SUBRP (object) && XSUBR (object)->native_elisp) ? Qt : Qnil;
874 return XSUBR (subr)->native_elisp ? Qt : Qnil;
875} 874}
876#endif 875#endif
877 876