aboutsummaryrefslogtreecommitdiff
path: root/src/lux/macro.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/lux/macro.clj')
-rw-r--r--src/lux/macro.clj5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lux/macro.clj b/src/lux/macro.clj
index e7c54d8ac..7f1e7116b 100644
--- a/src/lux/macro.clj
+++ b/src/lux/macro.clj
@@ -60,9 +60,8 @@
;; [Resources]
(defn expand [loader macro-class tokens]
(let [output (-> (.loadClass loader macro-class)
- .getDeclaredConstructors
- first
- (.newInstance (to-array [(int 0) nil]))
+ (.getField "_datum")
+ (.get nil)
(.apply (->lux+ ->lux loader tokens))
(.apply nil))]
[(->clojure+ ->clojure (aget output 0))