Remove unnecessary bangs from macros

This commit is contained in:
oakes
2014-04-14 01:17:41 -04:00
parent 4f94b5a495
commit 0ecabbce47
2 changed files with 8 additions and 8 deletions

View File

@@ -85,7 +85,7 @@
"G3dModelLoader" {"loader :g3d-model" :constructors
"loader! :g3d-model" :methods}
"GearJointDef" {"joint-def :gear" :fields}
"GeometryUtils" {"geometry!" :static-methods}
"GeometryUtils" {"geometry" :static-methods}
"Graphics" {"graphics!" :methods}
"GridPoint2" {"grid-point-2" :methods
"grid-point-2!" :methods}
@@ -110,7 +110,7 @@
"Input.Buttons" {"button-code" :static-fields
"button-pressed?" :static-fields}
"Interpolation" {"interpolation" :static-classes}
"Intersector" {"intersector!" :static-methods}
"Intersector" {"intersector" :static-methods}
"IntAttribute" {"attribute :int" :constructors
"attribute-type :int" :static-fields
"attribute! :int" :static-methods}
@@ -131,7 +131,7 @@
"map-objects!" :methods}
"Material" {"material" :methods
"material!" :methods}
"MathUtils" {"math!" :static-methods}
"MathUtils" {"math" :static-methods}
"MapLayer" {"map-layer" :methods
"map-layer!" :methods}
"Matrix3" {"matrix-3" :methods

View File

@@ -8,7 +8,7 @@
; static methods/fields
(defmacro geometry!
(defmacro geometry
"Calls a single static method on [GeometryUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/GeometryUtils.html)."
[k & options]
`(~(u/gdx-field :math :GeometryUtils (u/key->camel k)) ~@options))
@@ -20,17 +20,17 @@
[k]
`~(u/gdx-class :math :Interpolation (u/key->pascal k)))
(defmacro intersector!
(defmacro intersector
"Calls a single static method on [Intersector](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Intersector.html).
(intersector! :is-point-in-triangle 0 1 0 0 1 2 3 0)"
(intersector :is-point-in-triangle 0 1 0 0 1 2 3 0)"
[k & options]
`(~(u/gdx-field :math :Intersector (u/key->camel k)) ~@options))
(defmacro math!
(defmacro math
"Calls a single static method on [MathUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/MathUtils.html).
(math! :ceil 0.1)"
(math :ceil 0.1)"
[k & options]
`(~(u/gdx-field :math :MathUtils (u/key->camel k)) ~@options))