I've a macro that refuses to work as expected and I was wondering if there was a way to see what it expands to, is there something like macroexpand-1 from lisp in Crystal? If so, how do I use it? Thanks!
Placing {% debug %} at the end of the macro will print it's contents at compile time.
e.g.
macro foo
...
{% debug %}
end
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more