Definition of the restrict macro.
Submit the event form generated by restrict-fn.
Macro:
(defmacro restrict (&whole call old restriction &key (undefined ':undefined) (new-name ':auto) (new-enable ':auto) (old-to-new-name 'nil old-to-new-name?) (old-to-new-enable 'nil old-to-new-enable?) (new-to-old-name 'nil new-to-old-name?) (new-to-old-enable 'nil new-to-old-enable?) (verify-guards ':auto) (hints 'nil) (print ':result) (show-only 'nil)) (cons 'make-event-terse (cons (cons 'restrict-fn (cons (cons 'quote (cons old 'nil)) (cons (cons 'quote (cons restriction 'nil)) (cons (cons 'quote (cons undefined 'nil)) (cons (cons 'quote (cons new-name 'nil)) (cons (cons 'quote (cons new-enable 'nil)) (cons (cons 'quote (cons old-to-new-name 'nil)) (cons (cons 'quote (cons old-to-new-name? 'nil)) (cons (cons 'quote (cons old-to-new-enable 'nil)) (cons (cons 'quote (cons old-to-new-enable? 'nil)) (cons (cons 'quote (cons new-to-old-name 'nil)) (cons (cons 'quote (cons new-to-old-name? 'nil)) (cons (cons 'quote (cons new-to-old-enable 'nil)) (cons (cons 'quote (cons new-to-old-enable? 'nil)) (cons (cons 'quote (cons verify-guards 'nil)) (cons (cons 'quote (cons hints 'nil)) (cons (cons 'quote (cons print 'nil)) (cons (cons 'quote (cons show-only 'nil)) (cons (cons 'quote (cons call 'nil)) (cons (cons 'cons (cons ''restrict (cons (cons 'quote (cons old 'nil)) 'nil))) '(state))))))))))))))))))))) (cons ':suppress-errors (cons (not print) 'nil)))))