aboutsummaryrefslogtreecommitdiff
path: root/sokol_args.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-10-15 17:53:28 +0200
committerAndre Weissflog <floooh@gmail.com>2022-10-15 17:53:28 +0200
commit909683255f742d101cd187491db81e2d1cdcb3c7 (patch)
tree5c8cf8018ea0742a280894473126833f5dc02bc5 /sokol_args.h
parentcf61d7d1237950d75ebf3111ba5d394ba776c704 (diff)
emscripten: use new EM_JS_DEPS() macro to declare JS function dependencies
Diffstat (limited to 'sokol_args.h')
-rw-r--r--sokol_args.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sokol_args.h b/sokol_args.h
index 7cb93834..b5efabec 100644
--- a/sokol_args.h
+++ b/sokol_args.h
@@ -692,6 +692,11 @@ _SOKOL_PRIVATE bool _sargs_parse_cargs(int argc, const char** argv) {
#ifdef __cplusplus
extern "C" {
#endif
+
+#if defined(EM_JS_DEPS)
+EM_JS_DEPS(sokol_audio, "$withStackSave,$allocateUTF8OnStack");
+#endif
+
EMSCRIPTEN_KEEPALIVE void _sargs_add_kvp(const char* key, const char* val) {
SOKOL_ASSERT(_sargs.valid && key && val);
if (_sargs.num_args >= _sargs.max_args) {