odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

wasm: support `vendor:stb/truetype` and `vendor:fontstash` #3859

Closed laytan closed 4 days ago

laytan commented 4 days ago

I found a bug #3856 which makes the fmod definition not work, I added a panic for now, which in my use-case wasn't hit because this is only used in a single exported function.

laytan commented 4 days ago

I might move the preopen things out of @(init) so it is not compiled in when you don't use os.open

EDIT: nevermind, thinking about threading and allocations make me change my mind