sdlGetLogPriority function log

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.2.0.

\sa SDL_SetLogPriority

extern SDL_DECLSPEC SDL_LogPriority SDLCALL SDL_GetLogPriority(int category)

Implementation

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