aboutsummaryrefslogtreecommitdiff
path: root/sokol_args.h
diff options
context:
space:
mode:
authorRob Loach <RobLoach@users.noreply.github.com>2025-01-30 00:32:15 -0500
committerGitHub <noreply@github.com>2025-01-30 00:32:15 -0500
commit8267af806bdac8d3de199eeb2c63988bb9d3fe5b (patch)
treeb8be7334a7b49b11eef85528a799ca11fe4d248c /sokol_args.h
parent6cf5c69824840a2a343d7d5b6ed91fd540b2bfab (diff)
sokol_args: Fix Emscripten extra semi-colon
In Emscripten, the `EM_JS` function should not end with a `;`. This change fixes that for both instances. This is the error that you get when using the `;`... ``` sokol_args.h:688:63: error: extra ';' outside of a function [-Werror,-Wextra-semi] 688 | EM_JS_DEPS(sokol_audio, "$withStackSave,$stringToUTF8OnStack"); | ^ sokol_args.h:732:3: error: extra ';' outside of a function [-Werror,-Wextra-semi] 732 | }); | ^ 2 errors generated. ```
Diffstat (limited to 'sokol_args.h')
-rw-r--r--sokol_args.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_args.h b/sokol_args.h
index 532b7b29..e39b6f29 100644
--- a/sokol_args.h
+++ b/sokol_args.h
@@ -685,7 +685,7 @@ extern "C" {
#endif
#if defined(EM_JS_DEPS)
-EM_JS_DEPS(sokol_audio, "$withStackSave,$stringToUTF8OnStack");
+EM_JS_DEPS(sokol_audio, "$withStackSave,$stringToUTF8OnStack")
#endif
EMSCRIPTEN_KEEPALIVE void _sargs_add_kvp(const char* key, const char* val) {
@@ -729,7 +729,7 @@ EM_JS(void, sargs_js_parse_url, (void), {
__sargs_add_kvp(key_cstr, val_cstr)
});
}
-});
+})
#endif // EMSCRIPTEN