Private helper to decrement a subsystem's ref counter. */
| 101 | |
| 102 | /* Private helper to decrement a subsystem's ref counter. */ |
| 103 | static void |
| 104 | SDL_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. */ |
| 113 | static SDL_bool |
no test coverage detected