Started changing away from macros in files.

This commit is contained in:
Tom Helmuth 2021-11-02 11:11:51 -04:00
parent 9507eca041
commit d6ed2456c7
2 changed files with 3 additions and 8 deletions

View File

@ -1,12 +1,8 @@
(ns propeller.push.instructions.numeric
#?(:cljs (:require-macros
[propeller.push.utils.macros :refer [def-instruction
generate-instructions]]))
(:require [propeller.push.utils.helpers :refer [make-instruction]]
[propeller.tools.math :as math]
#?(:cljs [cljs.reader :refer [read-string]]
:clj [propeller.push.utils.macros :refer [def-instruction
generate-instructions]])))
[propeller.push.utils.macros :refer [def-instruction
generate-instructions]]))
;; =============================================================================
;; FLOAT and INTEGER Instructions (polymorphic)

View File

@ -33,5 +33,4 @@
(let [instruction-name (keyword (str (name stack) (:name (meta func))))
metadata (make-metadata func stack)
new-func (with-meta (partial func stack) metadata)]
(println [instruction-name new-func (meta new-func)])
(def-instruction instruction-name new-func))))