diff options
Diffstat (limited to 'universe/lisp/prelude.lisp')
-rw-r--r-- | universe/lisp/prelude.lisp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/universe/lisp/prelude.lisp b/universe/lisp/prelude.lisp new file mode 100644 index 000000000000..3522567ea0f7 --- /dev/null +++ b/universe/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) |