SDL_SetLogOutputFunction

Function SDL_SetLogOutputFunction 

Source
pub unsafe extern "C" fn SDL_SetLogOutputFunction(
    callback: SDL_LogOutputFunction,
    userdata: *mut c_void,
)
Expand description

Replace the default log output function with one of your own.

§Parameters

  • callback: an SDL_LogOutputFunction to call instead of the default.
  • userdata: a pointer that is passed to callback.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also