CHECK_SUBR (subr);
return XSUBR (subr)->native_comp_u;
}
+
+DEFUN ("native-comp-unit-file", Fnative_comp_unit_file,
+ Snative_comp_unit_file, 1, 1, 0,
+ doc: /* Return the file of the native compilation unit. */)
+ (Lisp_Object object)
+{
+ CHECK_TYPE (NATIVE_COMP_UNITP (object), Qnative_comp_unit, object);
+ return XNATIVE_COMP_UNIT (object)->file;
+}
#endif
DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,
defsubr (&Ssubr_name);
#ifdef HAVE_NATIVE_COMP
defsubr (&Ssubr_native_elisp_p);
- defsubr (&Ssubr_native_compilation_unit);
+ defsubr (&Ssubr_native_comp_unit);
+ defsubr (&Snative_comp_unit_file);
#endif
#ifdef HAVE_MODULES
defsubr (&Suser_ptrp);