From 5a972c365f4431d75bf3a8d29a938cf89ccac8db Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 8 Sep 2010 09:02:38 -0700 Subject: Very minor bytecomp fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER. --- lisp/emacs-lisp/bytecomp.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index b1aa4a32b25..cb1deb9a762 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -4244,6 +4244,8 @@ and corresponding effects." (defvar byte-code-meter) (defun byte-compile-report-ops () + (or (boundp 'byte-metering-on) + (error "You must build Emacs with -DBYTE_CODE_METER to use this")) (with-output-to-temp-buffer "*Meter*" (set-buffer "*Meter*") (let ((i 0) n op off) -- cgit v1.2.3