diff options
| author | Andrea Corallo | 2019-12-23 09:40:41 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:38:15 +0100 |
| commit | df0a7547cbaf19152a74b5dda760e5d1f6c92ecc (patch) | |
| tree | 0a1c43a55594d6291c945238b94b591ec72ade5a /src | |
| parent | 12639610f78f9006b70933bfc6898c1312f95290 (diff) | |
| download | emacs-df0a7547cbaf19152a74b5dda760e5d1f6c92ecc.tar.gz emacs-df0a7547cbaf19152a74b5dda760e5d1f6c92ecc.zip | |
add native-comp-unit-file primitive
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c index 70f8a8f2c1a..3fb0fc0a190 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -883,6 +883,15 @@ DEFUN ("subr-native-comp-unit", Fsubr_native_comp_unit, | |||
| 883 | CHECK_SUBR (subr); | 883 | CHECK_SUBR (subr); |
| 884 | return XSUBR (subr)->native_comp_u; | 884 | return XSUBR (subr)->native_comp_u; |
| 885 | } | 885 | } |
| 886 | |||
| 887 | DEFUN ("native-comp-unit-file", Fnative_comp_unit_file, | ||
| 888 | Snative_comp_unit_file, 1, 1, 0, | ||
| 889 | doc: /* Return the file of the native compilation unit. */) | ||
| 890 | (Lisp_Object object) | ||
| 891 | { | ||
| 892 | CHECK_TYPE (NATIVE_COMP_UNITP (object), Qnative_comp_unit, object); | ||
| 893 | return XNATIVE_COMP_UNIT (object)->file; | ||
| 894 | } | ||
| 886 | #endif | 895 | #endif |
| 887 | 896 | ||
| 888 | DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, | 897 | DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, |
| @@ -4011,7 +4020,8 @@ syms_of_data (void) | |||
| 4011 | defsubr (&Ssubr_name); | 4020 | defsubr (&Ssubr_name); |
| 4012 | #ifdef HAVE_NATIVE_COMP | 4021 | #ifdef HAVE_NATIVE_COMP |
| 4013 | defsubr (&Ssubr_native_elisp_p); | 4022 | defsubr (&Ssubr_native_elisp_p); |
| 4014 | defsubr (&Ssubr_native_compilation_unit); | 4023 | defsubr (&Ssubr_native_comp_unit); |
| 4024 | defsubr (&Snative_comp_unit_file); | ||
| 4015 | #endif | 4025 | #endif |
| 4016 | #ifdef HAVE_MODULES | 4026 | #ifdef HAVE_MODULES |
| 4017 | defsubr (&Suser_ptrp); | 4027 | defsubr (&Suser_ptrp); |