floooh / sokol-nim

nim bindings for https://github.com/floooh/sokol
MIT License
76 stars 14 forks source link

Reminder: the sokol/app event callback allows to scribble over the non-owned event struct #18

Open floooh opened 2 years ago

floooh commented 2 years ago

...not super critical because sokol_app.h treats the event struct as "write-only", but it's not nice.

Nim doesn't seem to have the concept of a const-ptr argument, so it's not an easy thing to solve without wrapping the cdecl callback.