diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-03-01 20:24:27 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-03-01 20:24:27 +0100 |
| commit | 49a75e1476153cb2605d3b3ebd2f07e3eb0536d9 (patch) | |
| tree | 779583ec384a9713b0b189908200168eca179110 /sokol_args.h | |
| parent | c4252f294f2c975501832ca1cd0e831d63740af3 (diff) | |
sokol_app.h, sokol_args.h emsc: replace deprecated allocateUTF8OnStack with stringToUTF8OnStack
Diffstat (limited to 'sokol_args.h')
| -rw-r--r-- | sokol_args.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_args.h b/sokol_args.h index 6c560bae..b5b4d47c 100644 --- a/sokol_args.h +++ b/sokol_args.h @@ -695,7 +695,7 @@ extern "C" { #endif #if defined(EM_JS_DEPS) -EM_JS_DEPS(sokol_audio, "$withStackSave,$allocateUTF8OnStack"); +EM_JS_DEPS(sokol_audio, "$withStackSave,$stringToUTF8OnStack"); #endif EMSCRIPTEN_KEEPALIVE void _sargs_add_kvp(const char* key, const char* val) { @@ -734,8 +734,8 @@ EM_JS(void, sargs_js_parse_url, (void), { const key = p.value[0]; const val = p.value[1]; withStackSave(() => { - const key_cstr = allocateUTF8OnStack(key); - const val_cstr = allocateUTF8OnStack(val); + const key_cstr = stringToUTF8OnStack(key); + const val_cstr = stringToUTF8OnStack(val); __sargs_add_kvp(key_cstr, val_cstr) }); } |