Re: Workaround for setjmp/longjmp in WASM Builds

2024-09-13 Thread Lawrence D'Oliveiro
On Sat, 14 Sep 2024 01:45:31 -0400, O H wrote:

> ... I was wondering if anyone has any suggestions on working around using
> setjmp/longjmp in freetype.

Last I checked, FreeType doesn’t use setjmp/longjmp. Not in its public
API, anyway.



Workaround for setjmp/longjmp in WASM Builds

2024-09-13 Thread O H
Hi,

I'm building a standalone WASM build of the pdfium library using
instructions at pdfium-lib  which
uses freetype as a library but I'm running into issues where my program
seems to crash on setjmp/longjmp calls.

C++ exceptions are not well supported for non-JS WASM builds and I was
wondering if anyone has any suggestions on working around using
setjmp/longjmp in freetype.

Thank you.