projects
/
kmrcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r5419: *** empty log message ***
[kmrcl.git]
/
macros.lisp
diff --git
a/macros.lisp
b/macros.lisp
index 74ea24b6f4fbc27c770dd972d25273cafa208e2c..1697dca0c47bd1cada09e93663267ae04f8001d2 100644
(file)
--- a/
macros.lisp
+++ b/
macros.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: macros.lisp,v 1.
1 2003/04/28 23:51:59
kevin Exp $
+;;;; $Id: macros.lisp,v 1.
3 2003/07/11 06:58:32
kevin Exp $
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-16,7
+16,7
@@
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :kmrcl)
+(in-package
#
:kmrcl)
(defmacro let-when ((var test-form) &body body)
`(let ((,var ,test-form))
(defmacro let-when ((var test-form) &body body)
`(let ((,var ,test-form))
@@
-60,7
+60,6
@@
`(labels ((self ,parms ,@body))
#'self))
`(labels ((self ,parms ,@body))
#'self))
-
(defmacro aif2 (test &optional then else)
(let ((win (gensym)))
`(multiple-value-bind (it ,win) ,test
(defmacro aif2 (test &optional then else)
(let ((win (gensym)))
`(multiple-value-bind (it ,win) ,test
@@
-165,3
+164,7
@@
(print-seconds secs)
(format t ", time per iteration: ")
(print-seconds (coerce (/ secs ,n) 'double-float))))))))
(print-seconds secs)
(format t ", time per iteration: ")
(print-seconds (coerce (/ secs ,n) 'double-float))))))))
+
+(defmacro mv-bind (vars form &body body)
+ `(multiple-value-bind ,vars ,form
+ ,@body))