Changeset 14381 for release/1.6/source/lib/macros.lisp
- Timestamp:
- Oct 29, 2010, 3:53:56 PM (10 years ago)
- Location:
- release/1.6/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release/1.6/source
- Property svn:mergeinfo changed
/trunk/source (added) merged: 14362-14367,14369,14371-14380
- Property svn:mergeinfo changed
-
release/1.6/source/lib/macros.lisp
r14351 r14381 264 264 ,@(if ret `((progn (setq ,varsym nil) ,ret)))))))) 265 265 266 (defmacro report-bad-arg (&rest args) 267 `(values (%badarg ,@args))) 266 (defmacro report-bad-arg (&whole w thing typespec &environment env) 267 (when (quoted-form-p typespec) 268 (unless (ignore-errors (specifier-type-if-known (cadr typespec) env)) 269 (warn "Unknown type specifier ~s in ~s." (cadr typespec) w))) 270 `(values (%badarg ,thing ,typespec))) 268 271 269 272 (defmacro %cons-restart (name action report interactive test) … … 3854 3857 (defmacro int-errno-ffcall (entry &rest args) 3855 3858 `(int-errno-call (ff-call ,entry ,@args))) 3859 3860 (defmacro with-initial-bindings (bindings &body body) 3861 (let* ((syms (gensym)) 3862 (values (gensym))) 3863 `(multiple-value-bind (,syms ,values) 3864 (initial-bindings ,bindings) 3865 (progv ,syms ,values ,@body)))) 3866 3867 (defmacro with-standard-initial-bindings (&body body) 3868 `(with-initial-bindings (standard-initial-bindings) ,@body)) 3869
Note: See TracChangeset
for help on using the changeset viewer.