Open williamstein opened 1 year ago
I've added PARTIAL support, but put the EM_JS stuff as stubs for now. This means that obviously some functionality won't work. This is just a tiny step so all those random scripts that import ctypes and do nothing with it (it's usually platform specific stuff on macos or windows) will at least not crash.
Example:
>>> import ctypes
>>> ctypes.pythonapi["PyObject_Str"]()
STUB: ffi_call
0
There is nothing difficult about fully supporting this properly. It's just a matter of organization and understanding the hard work already done by https://github.com/hoodmane/libffi-emscripten
Thanks!
See: