emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.78k stars 3.3k forks source link

[FEATURE REQUEST] makeDynCall macro for pre or post js files #20898

Open marcusx2 opened 10 months ago

marcusx2 commented 10 months ago

Currently the new makeDynCall struct doesn't work on pre or post js files. It would be incredibly useful if it did. If a use case is needed, this is for Unity so it can be used on .jspre files. @juj can probably elaborate more.

Zarbuz commented 6 days ago

Up ! This would very usefull for Unity

sbc100 commented 6 days ago

As of #21227 you can now add #preprocess to the start of you pre/post JS files which will cause them to be processed and you can then use all the macros such as makeDynCall