diff options
author | Chris Robinson <[email protected]> | 2012-02-19 12:07:40 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-19 12:07:40 -0800 |
commit | 4a65747a4b20cbbfb2627bf10ded6f5b897cb908 (patch) | |
tree | 9a8c3bc309514340dd8795db8904fe51fd8d3803 /OpenAL32/alEffect.c | |
parent | 6dc194ed1defc358c9ed4ee8a67db71f5c040766 (diff) |
Add a COUNTOF macro to get the number of entries in a static array
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r-- | OpenAL32/alEffect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index 4e04089c..aebda3c7 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -1449,7 +1449,7 @@ static const struct { DECL(SMALLWATERROOM), }; #undef DECL -static const ALsizei reverblistsize = sizeof(reverblist)/sizeof(reverblist[0]); +static const ALsizei reverblistsize = COUNTOF(reverblist); ALvoid GetReverbEffect(const char *name, ALeffect *effect) { |