mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-11 12:14:41 +08:00
Stringify multi-word macros correctly
Use vararg macros for this. PUBLISHED_FROM=735c40b79dedef17a1fdbb5b846e984df0ae7018
This commit is contained in:
parent
6a51af9efe
commit
93ac3e19f0
@ -2500,7 +2500,11 @@ int cs_base64_decode(const unsigned char *s, int len, char *dst, int *dec_len);
|
|||||||
* Expands to a string representation of its argument: e.g.
|
* Expands to a string representation of its argument: e.g.
|
||||||
* `CS_STRINGIFY_LIT(5) expands to "5"`
|
* `CS_STRINGIFY_LIT(5) expands to "5"`
|
||||||
*/
|
*/
|
||||||
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||||
|
#define CS_STRINGIFY_LIT(...) #__VA_ARGS__
|
||||||
|
#else
|
||||||
#define CS_STRINGIFY_LIT(x) #x
|
#define CS_STRINGIFY_LIT(x) #x
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Expands to a string representation of its argument, which is allowed
|
* Expands to a string representation of its argument, which is allowed
|
||||||
|
Loading…
Reference in New Issue
Block a user