floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.11k stars 501 forks source link

Add back sg_trace_hooks & sg_install_trace_hooks, not sure why those were ignored #1139

Closed colinbellino closed 4 weeks ago

floooh commented 4 weeks ago

Hmm, I don't know either. The only reason I can think of is that the function pointers in the sg_trace_hooks struct break the code generation scripts, but apparently it works (but might not have worked in early versions).

Some of the other language bindings also ignore the trace hooks, others don't. But I guess if it works there's no reason to not enable them.

From my pov you can remove draft status and I can merge.

colinbellino commented 4 weeks ago

I used the Odin bindgen as a base, but at least in Jai it's not an issue at all :)

floooh commented 4 weeks ago

Oki merged. Thanks!