Closed ghost closed 5 years ago
Realized I could do this with a function, too, and it still had the same issue
I ended up just precomputing the value with
(= (. module exports) (lambda (num)
(return ((. this atom) (parseInt (. num value) "16")))))
and it works fine, my bad!
I'm writing a macro to convert a hex atom into a decimal literal since eslisp doesn't seem to like hex literals
Current macro code looks like this:
And the compiled JS looks like this:
Calling it with
(macro test (require "./mac.js")) (test 'ff)
returns the following error:Am I doing anything wrong, or is this some weird issue with eslisp?