mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
; * lisp/emacs-lisp/comp.el: Add a simple sanitizer usage example.
This commit is contained in:
parent
1475e3c3b5
commit
e2fec514fd
1 changed files with 12 additions and 0 deletions
|
|
@ -3017,6 +3017,18 @@ These are substituted with a normal `set' op."
|
|||
;; the variable tested by the conditional branch is of the predicted
|
||||
;; value type and signal an error otherwise.
|
||||
|
||||
;;; Example:
|
||||
;; Assuming we want to compile 'test.el' and test function `foo' defined
|
||||
;; into it.
|
||||
|
||||
;; Native compile 'test.el' instrumenting it for sanitizer usage.
|
||||
;; (let ((comp-sanitizer-emit t))
|
||||
;; (load (native-compile "test.el")))
|
||||
|
||||
;; Run `foo' with the sanitizer active.
|
||||
;; (let ((comp-sanitizer-active t))
|
||||
;; (foo))
|
||||
|
||||
(defvar comp-sanitizer-emit nil
|
||||
"Gates the sanitizer pass.
|
||||
This is intended to be used only for development and verification of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue