(defn get-define [mname jsdoc]
(let [opts (get @env/*compiler* :options)]
(and (some #?(:clj #(.startsWith ^String % "@define")
:cljs #(gstring/startsWith % "@define"))
jsdoc)
opts
(= (:optimizations opts) :none)
(let [define (get-in opts [:closure-defines (str mname)])]
(when (valid-define-value? define)
(pr-str define))))))