lisp123456

Untitled

Nov 19th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. (defun %defun (name def &optional inline-lambda extra-info)
  2. (declare (type function def))
  3. ;; should've been checked by DEFMACRO DEFUN
  4. (aver (legal-fun-name-p name))
  5. ;; If a warning handler decides to disallow this redefinition
  6. ;; by nonlocally exiting, then we'll skip the rest of this stuff.
  7. (when (and (fboundp name)
  8. *type-system-initialized*)
  9. (handler-bind (((satisfies sb-c::handle-condition-p)
  10. #'sb-c::handle-condition-handler))
  11. (warn 'redefinition-with-defun :name name :new-function def)))
  12. (sb-c:%compiler-defun name nil inline-lambda extra-info)
  13. (setf (fdefinition name) def)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment