diff options
author | Ozkan Sezer <sezeroz@gmail.com> | 2019-07-31 01:22:02 +0300 |
---|---|---|
committer | Ozkan Sezer <sezeroz@gmail.com> | 2019-07-31 01:22:02 +0300 |
commit | 7e90621d4633dbbc81f6fb6468449774b9050b48 (patch) | |
tree | 918869b790710b85d1f57faba70e23425b9b0858 /include/SDL_stdinc.h | |
parent | 77e59a0dd1caf552af1934a5a03a69dc021ff469 (diff) | |
download | sdl-7e90621d4633dbbc81f6fb6468449774b9050b48.tar.gz |
Fix bug 4746 - introduce SDL_zeroa macro.
Diffstat (limited to 'include/SDL_stdinc.h')
-rw-r--r-- | include/SDL_stdinc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 28bb7b961..6ef5e3a2e 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -415,6 +415,7 @@ extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, #define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x))) #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x))) +#define SDL_zeroa(x) SDL_memset((x), 0, sizeof((x))) /* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */ SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords) |