diff options
Diffstat (limited to 'src/components/include/utils/macro.h')
-rw-r--r-- | src/components/include/utils/macro.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/include/utils/macro.h b/src/components/include/utils/macro.h index e6f3b6b3ca..00298f690e 100644 --- a/src/components/include/utils/macro.h +++ b/src/components/include/utils/macro.h @@ -40,7 +40,7 @@ #include "logger.h" // A macro to set some action for variable to avoid "unused variable" warning -#define UNUSED(x) (void) x; +#define UNUSED(x) (void)x; // A macro to disallow the copy constructor and operator= functions // This should be used in the private: declarations for a class #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ @@ -133,9 +133,9 @@ #endif /* -* @brief Calculate size of na array -* @param arr array, which size need to calculate -*/ + * @brief Calculate size of na array + * @param arr array, which size need to calculate + */ #define ARRAYSIZE(arr) sizeof(arr) / sizeof(*arr) #ifdef BUILD_TESTS @@ -146,9 +146,9 @@ #endif // BUILD_TESTS /* -* @brief deprecate a method declaration, a warning will be thrown by your -* compiler if a method with this macro is used -*/ + * @brief deprecate a method declaration, a warning will be thrown by your + * compiler if a method with this macro is used + */ #if __cplusplus > 201103L #define DEPRECATED [[deprecated]] #else |