Add UC_STRINGIFY macro
This commit is contained in:
@@ -52,5 +52,11 @@ typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
|||||||
|
|
||||||
#define UC_ALIGN(val,align) (((val)+(align)-1UL)&~((align)-1UL))
|
#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
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user