1.代码优化。

This commit is contained in:
MacRsh
2023-12-31 16:32:01 +08:00
parent f2b55fd7b1
commit d6292586ec
14 changed files with 31 additions and 35 deletions

View File

@@ -103,7 +103,7 @@ extern "C" {
*
* @return The number of elements in the array.
*/
#define MR_ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
#define MR_ARRAY_NUM(array) (sizeof(array)/sizeof((array)[0]))
/**
* @brief This macro function gets the maximum of two values.