Advertisement
Shinmera

Celebrate Macro

Jul 5th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.47 KB | None | 0 0
  1. #|
  2.   This file is a part of Shinmera's daily life
  3.   (c) 2013 TymoonNET/NexT http://tymoon.eu (shinmera@tymoon.eu)
  4.   Author: Nicolas Hafner <shinmera@tymoon.eu>
  5.   License: WTFPL
  6. |#
  7.  
  8. (defmacro celebrate (&rest what)
  9.   (let ((string (string-downcase (format NIL "~{~A ~}" what))))
  10.     `(progn
  11.        (format T "It's time to celebrate ~a!~%~%" ,string)
  12.        (loop for i upto 20 do (format T "GOOD JOB TO YOU! "))
  13.        (format T "~%~%Now on to the next thing!~%"))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement