Skip to content

Commit 7003861

Browse files
TomasRikerrtoy
authored andcommitted
Experimental branch: In FOO-IMPL, add proxy function $FOO that forwards to FOO-IMPL
1 parent d5c8d20 commit 7003861

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/defmfun-check.lisp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,11 @@
379379
(block ,name
380380
(let ((%%pretty-fname ',pretty-fname))
381381
(declare (ignorable %%pretty-fname))
382-
,@forms)))
382+
(flet ((,name (&rest args)
383+
,(format nil "Proxy function to forward ~S calls to ~S" name impl-name)
384+
(apply #',impl-name args)))
385+
(declare (ignorable #',name) (inline ,name))
386+
,@forms))))
383387

384388
(let ,(when deprecated-p `((,warning-done-var nil)))
385389
(defun ,name (&rest ,args)

0 commit comments

Comments
 (0)