Hi,
I want to expand a macro based on what backend (c, js, ...) is currently used to compile the file.
Does the backend install a cond-expand symbol that I can reference or else is there a way to know what is the current backend from my macro?
Thanks, Guillaume Cartier
Afficher les réponses par date
Yes there’s a macro for that, macro-case-target.
(include “~~lib/_gambit#.scm”)
(macro-case-target ((c) ...) ;; when target is C ((js) ...) ;; when target is JavaScript (else ...)) ;; otherwise
Marc
On Feb 23, 2015, at 9:35 AM, Guillaume Cartier gucartier@gmail.com wrote:
Hi,
I want to expand a macro based on what backend (c, js, ...) is currently used to compile the file.
Does the backend install a cond-expand symbol that I can reference or else is there a way to know what is the current backend from my macro?
Thanks,