Add type checking

This commit is contained in:
Marcus Kammer 2024-06-15 21:18:25 +02:00
parent 58e17823b8
commit 8613aac968
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -2,6 +2,8 @@
(defun load-form (lang form-file-name)
"Load a Lisp file containing form definitions."
(check-type lang string)
(check-type form-file-name string)
(let* ((relative-path (concatenate 'string "src/views/forms/" lang "/"))
(full-path (uiop:merge-pathnames* relative-path (uiop:getcwd)))
(form-path (uiop:merge-pathnames* form-file-name full-path)))