diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-24T10·52+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-24T10·52+0000 |
commit | 95d03facb3af93323101737d76470f190e7ca2ae (patch) | |
tree | ccca388ec70f33fdb678d4888e095a2c0dd6a9f1 /lisp/prelude.lisp | |
parent | b6fa3941b3731e959a7f54bf8e68e43e9077bf90 (diff) |
Support prelude.lisp
Using this module to support utility functions that I have not classified further than being miscellaneous.
Diffstat (limited to 'lisp/prelude.lisp')
-rw-r--r-- | lisp/prelude.lisp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/prelude.lisp b/lisp/prelude.lisp new file mode 100644 index 000000000000..3522567ea0f7 --- /dev/null +++ b/lisp/prelude.lisp @@ -0,0 +1,14 @@ +(in-package #:cl-user) +(defpackage #:prelude + (:documentation "Supporting miscellaneous utility functions and macros.") + (:use #:cl) + (:shadow #:type) + (:export #:type #:comment)) +(in-package #:prelude) + +;; TODO: Add documentation to these macros. + +(defmacro type (name in out) + `(declaim (ftype (function ,in ,out) ,name))) + +(defmacro comment (&rest _forms) nil) |