MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_PrivateSubsystemRefCountDecr

Function SDL_PrivateSubsystemRefCountDecr

deps/SDL2/src/SDL.c:103–110  ·  view source on GitHub ↗

Private helper to decrement a subsystem's ref counter. */

Source from the content-addressed store, hash-verified

101
102/* Private helper to decrement a subsystem's ref counter. */
103static void
104SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
105{
106 int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
107 if (SDL_SubsystemRefCount[subsystem_index] > 0) {
108 --SDL_SubsystemRefCount[subsystem_index];
109 }
110}
111
112/* Private helper to check if a system needs init. */
113static SDL_bool

Callers 1

SDL_QuitSubSystemFunction · 0.85

Calls 1

Tested by

no test coverage detected