logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_LogOutputFunction - The prototype for the log output callback function.

Availability

       This datatype is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                       SDL_LogOutputFunction(3type)

Description

       This function is called by SDL when there is new text to be logged. A mutex is held so that this function
       is never called by more than one thread at once.

Function Parameters

userdata
              what was passed as userdata to SDL_SetLogOutputFunction().

       category
              the category of the message.

       priority
              the priority of the message.

       message
              the message being output.

Name

       SDL_LogOutputFunction - The prototype for the log output callback function.

Synopsis

#include<SDL3/SDL_log.h>typedefvoid(SDLCALL*SDL_LogOutputFunction)(void*userdata,intcategory,SDL_LogPrioritypriority,constchar*message);

See Also