Skip to content

Instantly share code, notes, and snippets.

@eshamster
Last active December 17, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshamster/feb039c084121a1b2628 to your computer and use it in GitHub Desktop.
Save eshamster/feb039c084121a1b2628 to your computer and use it in GitHub Desktop.
(in-package :cl-user)
(defpackage test-ps-eval-order
(:use :cl
:parenscript)
(:export :print-ps))
(in-package :test-ps-eval-order)
(eval-when (:compile-toplevel :execute :load-toplevel)
(defpsmacro test-defpsmacro ()
`(setf ok "expanded by test-defpsmacro")))
(ps (defmacro test-defmacro-in-ps ()
`(setf ok "expanded by test-defmacro-in-ps")))
(defun print-ps ()
(princ "----- From test-ps-eval-order::print-ps -----")
(print (ps (test-defpsmacro)))
(print (ps (test-defmacro-in-ps)))
(fresh-line))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment