~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/: Introduce `deliver-call' to abbreviate function calls.
[sod]
/
src
/
codegen-proto.lisp
diff --git
a/src/codegen-proto.lisp
b/src/codegen-proto.lisp
index
e7486fa
..
5364f72
100644
(file)
--- a/
src/codegen-proto.lisp
+++ b/
src/codegen-proto.lisp
@@
-406,4
+406,9
@@
(emit-inst codegen (make-return-inst nil)))
(t (funcall func target))))
(emit-inst codegen (make-return-inst nil)))
(t (funcall func target))))
+(export 'deliver-call)
+(defun deliver-call (codegen target func &rest args)
+ "Emit a statement to call FUNC with ARGS and deliver the result to TARGET."
+ (deliver-expr codegen target (make-call-inst func args)))
+
;;;----- That's all, folks --------------------------------------------------
;;;----- That's all, folks --------------------------------------------------