Add UC_STRINGIFY macro

This commit is contained in:
Nils Olav Selåsdal
2013-01-17 09:36:42 +01:00
parent 2d5d4a5749
commit 4457398da1
+6
View File
@@ -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