Skip to content

Commit

Permalink
Add make-instance as prefab translation form
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Nov 26, 2024
1 parent 61592b8 commit 312bcd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prefab.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@
(declare (ignorable ,@args))
,@body)
,instance ,asset))

(define-prefab-translator make-instance (instance asset class &rest args)
`(enter (make-instance ,class ,@args)
,instance))

0 comments on commit 312bcd2

Please sign in to comment.