Change ARRAY_LEN() to be more C++ safe.
authorRussell Bryant <russell@russellbryant.com>
Sun, 25 Jan 2009 02:49:30 +0000 (02:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 25 Jan 2009 02:49:30 +0000 (02:49 +0000)
commit6101eccc9f2a875f3702adccc3f3819059d5bffa
tree18bb25c4c0a15262bf08f1b4cbfb4b262778c57a
parent1c9d5caaefe7e2eb2529788142e9fd040e5232d1
Change ARRAY_LEN() to be more C++ safe.

When the second part of this macro is written as 0[a] instead of a[0], it will
force a failure if the macro is used on a C++ object that overloads the []
operator.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/utils.h