aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2022-11-01 21:04:22 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2022-11-01 21:04:22 +0000
commit8f2bda67034b1db89be28db1d1f3bfe33cfeb37b (patch)
treeb5be8aab171e054529b37e52b49375e5d7728742
parentrender: maybe_resize(): remove debug assert (diff)
wayland: use BUG() instead of xassert(false)
The latter will expand to the former anyway, so we may as well provide an explicit error message instead of "assertion failed: 'false'".
-rw-r--r--wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index cd052532..fb103ad1 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1915,7 +1915,7 @@ activation_token_done(void *data, struct xdg_activation_token_v1 *xdg_token,
return;
}
- xassert(false);
+ BUG("activation token not found in list");
}
static const struct