From 909683255f742d101cd187491db81e2d1cdcb3c7 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 15 Oct 2022 17:53:28 +0200 Subject: emscripten: use new EM_JS_DEPS() macro to declare JS function dependencies --- sokol_args.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sokol_args.h') 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) { -- cgit v1.2.3