Browse Source
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.master
1 changed files with 1 additions and 7 deletions
Loading…
Reference in new issue