There's not an easy way, I'm afraid. Those macros and other preprocessing
are handled in the JS part of the compiler, when it runs on itself and on
JS library files. To run it on other files, we'd need to either run the JS
compiler another time, or add a parameter for it to read, process and store
processed files while it is doing its normal stuff.

However, you can just use a JS library here - that way you can include
handwritten JS into your project, and better than post-js, it can do
dependency tracking and so forth. And preprocessing using those macros is
already built in. Would that work in your case?

- Alon


On Tue, Nov 25, 2014 at 8:04 AM, Pepijn Van Eeckhoudt <
[email protected]> wrote:

> Hi,
>
> Is there any way that I can get one of the emscripten tools to perform
> macro substitution (parseTools.js#processMacros) on a random source file?
> I'm generating a bunch of code that gets included using --post-js and in
> that code I would like to use the {{{makeSetValue}}} and {{{makeGetValue}}}
> macros.
>
> Thanks,
>
> Pepijn
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to