Move STRINGIFY to utils.h and add STRINGIFY2
parent
8c7076a0b5
commit
4823838fa3
|
@ -62,6 +62,9 @@
|
||||||
/* Round up @a so it's divisible by @b. */
|
/* Round up @a so it's divisible by @b. */
|
||||||
#define ROUNDUP(a, b) (((a) + (b) - 1) / (b) * (b))
|
#define ROUNDUP(a, b) (((a) + (b) - 1) / (b) * (b))
|
||||||
|
|
||||||
|
#define STRINGIFY(x) #x
|
||||||
|
#define STRINGIFY2(x) STRINGIFY(x)
|
||||||
|
|
||||||
char
|
char
|
||||||
to_lower(char c);
|
to_lower(char c);
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
* We try not to trust the server too much and be paranoid. If we get
|
* We try not to trust the server too much and be paranoid. If we get
|
||||||
* something which we definitely shouldn't, we fail.
|
* something which we definitely shouldn't, we fail.
|
||||||
*/
|
*/
|
||||||
#define STRINGIFY(expr) #expr
|
|
||||||
#define FAIL_UNLESS(expr) do { \
|
#define FAIL_UNLESS(expr) do { \
|
||||||
if (!(expr)) { \
|
if (!(expr)) { \
|
||||||
log_err(keymap->ctx, \
|
log_err(keymap->ctx, \
|
||||||
|
|
Loading…
Reference in New Issue