AmendHub

Download:

jcs

/

detritus

/

amendments

/

11

util: Add STR macro


jcs made amendment 11 about 1 year ago
--- util.h Tue Oct 1 20:15:20 2024 +++ util.h Wed Oct 23 11:28:59 2024 @@ -49,6 +49,14 @@ ((unsigned short)((unsigned char)(a)) << 8) | \ (unsigned short)((unsigned char)(b)) ) +/* + * STR(BLAH) will make a string constant from BLAH, though this VAL + * indirection is needed or it will make it "BLAH" and not the value of + * BLAH + */ +#define _VAL(x) #x +#define STR(arg) _VAL(arg) + #define SCROLLBAR_WIDTH 16 /* GetMBarHeight() is not very useful */