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

Function SDL_PrivateSubsystemRefCountIncr

deps/SDL2/src/SDL.c:94–100  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

92
93/* Private helper to increment a subsystem's ref counter. */
94static void
95SDL_PrivateSubsystemRefCountIncr(Uint32 subsystem)
96{
97 int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
98 SDL_assert(SDL_SubsystemRefCount[subsystem_index] < 255);
99 ++SDL_SubsystemRefCount[subsystem_index];
100}
101
102/* Private helper to decrement a subsystem's ref counter. */
103static void

Callers 1

SDL_InitSubSystemFunction · 0.85

Calls 1

Tested by

no test coverage detected