x: use xcb constants in _x_strerror as mush as possible

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2020-03-31 05:46:28 +01:00
parent 9332cba8df
commit bdf3aabb75
3 changed files with 46 additions and 38 deletions

View File

@@ -33,9 +33,6 @@ safe_isnan(double a) {
return __builtin_isnan(a);
}
#define CASESTRRET(s) \
case s: return #s
/// Same as assert(false), but make sure we abort _even in release builds_.
/// Silence compiler warning caused by release builds making some code paths reachable.
#define BUG() \