Skip to content

Does #if ASYNCIFY work in user code? #18786

Answered by sbc100
iliakan asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by iliakan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants