We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Xcc -D__EMBEDDED_SWIFT__
1 parent 8563ff7 commit a2c2963Copy full SHA for a2c2963
Sources/_CJavaScriptKit/_CJavaScriptKit.c
@@ -31,10 +31,7 @@ void swjs_cleanup_host_function_call(void *argv_buffer) {
31
free(argv_buffer);
32
}
33
34
-// NOTE: This __wasi__ check is a hack for Embedded compatibility (assuming that if __wasi__ is defined, we are not building for Embedded)
35
-// cdecls don't work in Embedded, but @_expose(wasm) can be used with Swift >=6.0
36
-// the previously used `#if __Embedded` did not play well with SwiftPM (defines needed to be on every target up the chain)
37
-# ifdef __wasi__
+# if defined(__wasi__) && !defined(__EMBEDDED_SWIFT__)
38
bool _call_host_function_impl(const JavaScriptHostFuncRef host_func_ref,
39
const RawJSValue *argv, const int argc,
40
const JavaScriptObjectRef callback_func);
0 commit comments