Skip to content

Commit

Permalink
Assign lambda-lists to anonymous lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontone committed Sep 8, 2022
1 parent a9dbec7 commit 2514864
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/compiler/compiler.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,12 @@
(remove nil (mapcar #'third args))))

(defun lambda-name/docstring-wrapper (name docstring lambda-list code)
(if (or name docstring)
`(selfcall
(var (func ,code))
,(when name `(= (get func "fname") ,name))
,(when docstring `(= (get func "docstring") ,docstring))
(= (get func "lambdalist") ,(prin1-to-string lambda-list))
(return func))
code))
`(selfcall
(var (func ,code))
,(when name `(= (get func "fname") ,name))
,(when docstring `(= (get func "docstring") ,docstring))
(= (get func "lambdalist") ,(prin1-to-string lambda-list))
(return func)))

(defun lambda-check-argument-count
(n-required-arguments n-optional-arguments rest-p)
Expand Down

0 comments on commit 2514864

Please sign in to comment.