From f9ef8d620f9e35619faf0bd5caa8018e93b9271e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 28 Nov 2013 23:30:44 +0100 Subject: [PATCH] style cleanups --- include/ucore/utils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/ucore/utils.h b/include/ucore/utils.h index 0b2e358..f3bedef 100644 --- a/include/ucore/utils.h +++ b/include/ucore/utils.h @@ -60,20 +60,21 @@ const typeof( ((const type *)0)->member ) *__mptr = (ptr); \ /** * Test if x is a power of 2 * - * @param x value + * @param x value, must be an unsigned type * @return 1 if x is a power of 20, 0 if it is not */ #define UC_IS_POW2(x) ((x) && !((x) & (x) - 1)) /** - * * Expands @x and turns it into a string. - * */ + * Expands @x and turns it into a string. + */ #define UC_STRINGIFY(x) UC_STRINGIFY_HLP(x) #define UC_STRINGIFY_HLP(x) #x /** Macro that expands to a string for the current file:line */ #define UC_SRC_LOCATION __FILE__ ":" UC_STRINGIFY(__LINE__) + /** * assert() that is not affected by NDEBUG define */