X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/b8c698eeb25ff564145079e4310b0bd71f84155b..933bbda69cd7c809a843cd6075137dc0f50b9020:/src/codegen-proto.lisp diff --git a/src/codegen-proto.lisp b/src/codegen-proto.lisp index a96c6ff..e7486fa 100644 --- a/src/codegen-proto.lisp +++ b/src/codegen-proto.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -64,6 +64,8 @@ (make-instance 'temporary-name :tag "sod__master_ap")) (defparameter *sod-tmp-ap* (make-instance 'temporary-name :tag "sod__tmp_ap")) +(defparameter *sod-tmp-val* + (make-instance 'temporary-name :tag "sod__t")) ;;;-------------------------------------------------------------------------- ;;; Instructions. @@ -154,7 +156,7 @@ (print-unreadable-object (,inst-var ,streamvar :type t) (format stream "~@<~@{~S ~@_~S~^ ~_~}~:>" ,@(mappend #'list keys args))) - (progn ,@body)))) + (block ,code ,@body)))) ,@(and export `((export '(,class-name ,constructor-name ,@(mapcar (lambda (arg) (symbolicate 'inst- arg))