Increment an atomic variable used as a reference count.
Defined in <SDL3/SDL_atomic.h>
#define SDL_AtomicIncRef(a) SDL_AddAtomicInt(a, 1)
a | a pointer to an SDL_AtomicInt to increment. |
Returns the previous value of the atomic variable.
Note: If you don't know what this macro is for, you shouldn't use it!
It is safe to call this macro from any thread.
This macro is available since SDL 3.1.3.