summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2021-10-08 11:37:54 +0200
committerrafa_99 <raroma09@gmail.com>2021-10-15 23:20:53 +0100
commit1d6e6cbfdecb9cbe24bd777d29584ebf1cf76d1d (patch)
tree7197e22875caef89c0ac9c1df52e6fd60c10dca4 /src
parent6693b044e326361f8b82bb64fa7a4c8b256a839b (diff)
Fixed missed macro.
Diffstat (limited to 'src')
-rw-r--r--src/config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.def.h b/src/config.def.h
index 772282c..76c6bcb 100644
--- a/src/config.def.h
+++ b/src/config.def.h
@@ -106,6 +106,7 @@
GET_INT(c, "hint-timeout")
*/
#define COOKIE GET_CHAR(c, "cookie-accept")
+#define CHAR_MAP(v, i, m, d) (strcmp(v, i) == 0 ? m : (d))
#define STATUS_VARAIBLE_SHOW "%c%c%c%c%c%c%c%c", \
CHAR_MAP(COOKIE, "always", 'A', CHAR_MAP(COOKIE, "origin", '@', 'a')), \
GET_BOOL(c, "dark-mode") ? 'D' : 'd', \