Convert some uses of xassert(false) to BUG("some error message")

This commit is contained in:
Craig Barnes 2021-02-09 13:52:33 +00:00
parent e19db15104
commit 1ec5684438
5 changed files with 10 additions and 12 deletions

2
fdm.c
View file

@ -251,7 +251,7 @@ hook_priority_to_list(struct fdm *fdm, enum fdm_hook_priority priority)
case FDM_HOOK_PRIORITY_HIGH: return &fdm->hooks_high;
}
xassert(false);
BUG("unhandled priority type");
return NULL;
}