-
Is it possible to detect if ASYNCIFY is enabled in C code compiled with Emscripten? This doesn't work: #if ASYNCIFY
...
#endif |
Beta Was this translation helpful? Give feedback.
Answered by
sbc100
Feb 18, 2023
Replies: 2 comments
-
It will work in JS library files, but not in C/C++ files (this is the same for all the emscripten settings BTW). Further more |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iliakan
-
See also |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will work in JS library files, but not in C/C++ files (this is the same for all the emscripten settings BTW).
Further more
-sASYNCIFY
is a link-time option so it not known at compile time, if you want to have a compile flag you would just add your own-DASYNCIFY