r10965: 2006-07-04 Kevin Rosenberg (kevin@rosenberg.net)
[uffi.git] / src / objects.lisp
index 42a5af355344ff179c385eb5fe40fb8ee0702ad7..0e327f0269d4d457da27b457de85fc3657caa5b5 100644 (file)
@@ -286,5 +286,5 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
 ;;; macptrs" when a saved image is loaded.
 ;; This may possibly be needed for sbcl's SAVE-LISP-AND-DIE
 (defmacro def-pointer-var (name value &optional doc)
-  #-openmcl `(defvar ,name ,value ,doc)
+  #-openmcl `(defvar ,name ,value ,@(if doc (list doc)))
   #+openmcl `(ccl::defloadvar ,name ,value ,doc))