sdlGetLogPriority function

int sdlGetLogPriority(
  1. int category
)

Get the priority of a particular log category.

\param category the category to query. \returns the SDL_LogPriority for the requested category.

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

\since This function is available since SDL 3.1.3.

\sa SDL_SetLogPriority

extern SDL_DECLSPEC SDL_LogPriority SDLCALL SDL_GetLogPriority(int category)

Implementation

int sdlGetLogPriority(int category) {
  final sdlGetLogPriorityLookupFunction = libSdl3.lookupFunction<
      Int32 Function(Int32 category),
      int Function(int category)>('SDL_GetLogPriority');
  return sdlGetLogPriorityLookupFunction(category);
}