File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -678,7 +678,7 @@ inline void chipDie(void)
678
678
#endif
679
679
680
680
/* *
681
- * @def ArraySize (aArray)
681
+ * @def MATTER_ARRAY_SIZE (aArray)
682
682
*
683
683
* @brief
684
684
* Returns the size of an array in number of elements.
@@ -687,16 +687,16 @@ inline void chipDie(void)
687
687
*
688
688
* @code
689
689
* int numbers[10];
690
- * SortNumbers(numbers, ArraySize (numbers));
690
+ * SortNumbers(numbers, MATTER_ARRAY_SIZE (numbers));
691
691
* @endcode
692
692
*
693
693
* @return The size of an array in number of elements.
694
694
*
695
- * @note Clever template-based solutions seem to fail when ArraySize is used
695
+ * @note Clever template-based solutions seem to fail when MATTER_ARRAY_SIZE is used
696
696
* with a variable-length array argument, so we just do the C-compatible
697
697
* thing in C++ as well.
698
698
*/
699
- #define ArraySize (a ) (sizeof (a) / sizeof ((a)[0 ]))
699
+ #define MATTER_ARRAY_SIZE (a ) (sizeof (a) / sizeof ((a)[0 ]))
700
700
701
701
/* *
702
702
* @brief Ensures that if `str` is NULL, a non-null `default_str_value` is provided
You can’t perform that action at this time.
0 commit comments