Skip to content

Commit 4002452

Browse files
committed
Add comment
1 parent 0ca9e4c commit 4002452

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Python/emscripten_trampoline_inner.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
// support wasm-gc yet. If the JS runtime does not support wasm-gc (or has buggy
44
// support like iOS), we will use the JS trampoline fallback.
55

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.
612
typedef void PyObject;
713

814
typedef PyObject* (*three_arg)(PyObject*, PyObject*, PyObject*);

0 commit comments

Comments
 (0)