macros.lisp 208 B

12345678910
  1. (in-package :translator-test)
  2. (defmacro with-testport ((name init) &body body)
  3. `(let ((,name ,init))
  4. (with-cleanup (port-deallocate ,name)
  5. (assert-true (port-valid-p ,name))
  6. ,@body)))