diff --git a/include/ucore/ucore_utils.h b/include/ucore/ucore_utils.h index fa559da..1b3737e 100644 --- a/include/ucore/ucore_utils.h +++ b/include/ucore/ucore_utils.h @@ -52,5 +52,11 @@ typeof( ((type *)0)->member ) *__mptr = (ptr); \ #define UC_ALIGN(val,align) (((val)+(align)-1UL)&~((align)-1UL)) +/** + * * Expands @x and turns it into a string. + * */ +#define UC_STRINGIFY(x) UC_STRINGIFY_HLP(x) +#define UC_STRINGIFY_HLP(x) #x + #endif