sdlSetLogPriority function

void sdlSetLogPriority(
  1. int category,
  2. int priority
)

Set the priority of a particular log category.

\param category the category to assign a priority to. \param priority the SDL_LogPriority to assign.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GetLogPriority \sa SDL_ResetLogPriorities \sa SDL_SetLogPriorities

extern SDL_DECLSPEC void SDLCALL SDL_SetLogPriority(int category, SDL_LogPriority priority)

Implementation

void sdlSetLogPriority(int category, int priority) {
  final sdlSetLogPriorityLookupFunction = libSdl3.lookupFunction<
      Void Function(Int32 category, Int32 priority),
      void Function(int category, int priority)>('SDL_SetLogPriority');
  return sdlSetLogPriorityLookupFunction(category, priority);
}