Function sdl2_sys::SDL_LogSetOutputFunction

source ยท
pub unsafe extern "C" fn SDL_LogSetOutputFunction(
    callback: SDL_LogOutputFunction,
    userdata: *mut c_void,
)
Expand description

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

\param callback an SDL_LogOutputFunction to call instead of the default \param userdata a pointer that is passed to callback

\since This function is available since SDL 2.0.0.

\sa SDL_LogGetOutputFunction