From d38c1fe5ffb40fafdd65af9c85366b8a494ae4ee Mon Sep 17 00:00:00 2001 From: oakes Date: Thu, 18 Sep 2014 13:16:34 -0400 Subject: [PATCH] Throw exception for breaking change --- src/play_clj/g2d_physics.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/play_clj/g2d_physics.clj b/src/play_clj/g2d_physics.clj index 16a534d..ef523ff 100644 --- a/src/play_clj/g2d_physics.clj +++ b/src/play_clj/g2d_physics.clj @@ -184,6 +184,8 @@ such as :on-begin-contact." (defmacro circle-shape "Returns a [CircleShape](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/CircleShape.html)." [& options] + (when-not (keyword? (first options)) + (throw (Exception. "Replace (circle-shape radius) with (circle-shape :set-radius radius :set-position radius)"))) `(u/calls! ^CircleShape (circle-shape*) ~@options)) (defmacro circle-shape!