BTW, this seems to be correct.

On Monday, October 5, 2020 at 11:47:09 AM UTC-7, Shawn Riordan wrote:
>
> Would it be "-D"?
>
> As in, to enable foo:
> em++ -D FOO=1
> to disable foo
> em++ -D FOO=0
>
> ?
>
>
> On Monday, October 5, 2020 at 11:21:11 AM UTC-7, Shawn Riordan wrote:
>>
>> If I wanted my code to have a custom preprocessor definition, how do I 
>> pass that on the emcc commandline?
>>
>> Lets say I want my C++ code to have something like:
>>
>> #ifdef FOO
>>     printf("foo");
>> #endif
>>
>> how do I set the value of FOO when I run emcc?
>>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/1d30f3fa-a199-4639-bc6e-0c7ab3f439e5o%40googlegroups.com.

Reply via email to