sdl-2nim-langsdl-mixer

How do I call Mix_GetError from the nim SDL2 Mixer bindings?


There are multiple references in the nim SDL2 mixer.nim file to Error messages can be retrieved from Mix_GetError().

However, I can't seem to find this function defined in the mixer.nim file

How can I get the latest error string?


Solution

  • You can call sdl2.getError() (from from the base sdl2 bindings) to get the latest error string.