57ee0e29f6
This rolls back to the simpler version of ARRAY_SIZE. The more complex one helps catching bugs when we use pointers when we are expecting an array, but can't stand arrays with 0 elements. I'm not aware of bugs it actually caught on ArduPilot, although it did for me in other projects. I think this is better than having a separate "_SIMPLE" version of the macro and spread its usage... the trend is just to use the simpler version anyway. |
||
---|---|---|
.. | ||
examples/AP_Common | ||
missing | ||
AP_Common.cpp | ||
AP_Common.h | ||
AP_FWVersion.cpp | ||
AP_FWVersion.h | ||
AP_Test.h | ||
Bitmask.h | ||
c++.cpp | ||
keywords.txt | ||
Location.cpp | ||
Location.h |