Private helper to increment a subsystem's ref counter. */
| 92 | |
| 93 | /* Private helper to increment a subsystem's ref counter. */ |
| 94 | static void |
| 95 | SDL_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. */ |
| 103 | static void |
no test coverage detected