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.
1 parent 0ca9e4c commit 4002452Copy full SHA for 4002452
Python/emscripten_trampoline_inner.c
@@ -3,6 +3,12 @@
3
// support wasm-gc yet. If the JS runtime does not support wasm-gc (or has buggy
4
// support like iOS), we will use the JS trampoline fallback.
5
6
+// We can't import Python.h here because it is compiled/linked with -nostdlib.
7
+// We don't need to know what's inside PyObject* anyways. We could just call it
8
+// void* everywhere. There are two reasons to do this:
9
+// 1. to improve readability
10
+// 2. eventually when we are comfortable requiring wasm-gc, we can merge this
11
+// into emscripten_trampoline.c without worrying about it.
12
typedef void PyObject;
13
14
typedef PyObject* (*three_arg)(PyObject*, PyObject*, PyObject*);
0 commit comments