summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-09-08 09:02:38 -0700
committerGlenn Morris <rgm@gnu.org>2010-09-08 09:02:38 -0700
commit5a972c365f4431d75bf3a8d29a938cf89ccac8db (patch)
treecba82a64e54719eb5d9a90888c1128456ac93947 /lisp/emacs-lisp/bytecomp.el
parent13639aab35819fbbe0d414e57b955d49c7affd86 (diff)
downloademacs-5a972c365f4431d75bf3a8d29a938cf89ccac8db.tar.gz
emacs-5a972c365f4431d75bf3a8d29a938cf89ccac8db.tar.bz2
emacs-5a972c365f4431d75bf3a8d29a938cf89ccac8db.zip
Very minor bytecomp fix.
* lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 2 insertions, 0 deletions
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)