The new EM_JS_DEPS() macro works nicely :)
I have just one question: does the first param "tag" have any significance? In the em_macros.h header there's this line:
EM_JS_DEPS(mylib_dep, "$allocate,$stackSave");
In my STB-style headers I just use the base name of the header file name, for instance I use withStackSave in two different headers (sokol_audio.h and sokol_app.h), and use the macro like this:
in sokol_app.h: EM_JS_DEPS(sokol_audio, "$withStackSave");
in sokol_audio.h: EM_JS_DEPS(sokol_app, "$withStackSave");
But those names (sokol_audio, sokol_app) don't have any association with any lib those headers might be compiled into.
It seems to work though, so I'm no complaining, just wondering what those tags are there for :)