r9173: add defconst
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 29 Apr 2004 15:16:56 +0000 (15:16 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 29 Apr 2004 15:16:56 +0000 (15:16 +0000)
debian/changelog
macros.lisp
package.lisp

index 22392e93edef967fdefbb6bf94291bcd5b94acdb..e95bcf548155036d28527f74b8814924d0c6d8c5 100644 (file)
@@ -1,3 +1,9 @@
+cl-kmrcl (1.70-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Thu, 29 Apr 2004 09:16:46 -0600
+
 cl-kmrcl (1.69-1) unstable; urgency=low
 
   * New upstream
index bf2714b86d441eec6f9d0c4bbce5a64f7f539d73..1239eb46b6d7d7cce32b073edc15d0d53a23efe8 100644 (file)
              (pprint exp)))
      (format t "~%~%")
      (values)))
+
+(defmacro defconst (symbol value &optional doc)
+   `(defconstant ,symbol (if (boundp ',symbol)
+                             (symbol-value ',symbol)
+                             ,value)
+     ,@(when doc (list doc))))
index 3d442662816cd43c9e956f89c9985f06507fc6c1..042fc119c0a49ccc7e834300f8f0daab8d052fc6 100644 (file)
    #:def-cached-instance
    #:with-ignore-errors
    #:ppmx
-
+   #:defconst
+   
    ;; files.lisp
    #:print-file-contents
    #:read-stream-to-string