diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-11-16 17:01:02 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-11-16 17:01:53 -0500 |
commit | 78dca8153f802f271b4f2aeca33d967a075e485e (patch) | |
tree | caf18232cb7d5256efaa853373644e810e1af014 /libdimension/prtree.c | |
parent | b8cfc42881e7045a6c93fcd5b64b14cefa8d6c5c (diff) | |
download | dimension-78dca8153f802f271b4f2aeca33d967a075e485e.tar.xz |
Add a dmnsn_unreachable() macro.
Also rename inline.h to compiler.h.
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r-- | libdimension/prtree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c index c59bcc4..33cb9a2 100644 --- a/libdimension/prtree.c +++ b/libdimension/prtree.c @@ -121,8 +121,7 @@ dmnsn_get_coordinate(const dmnsn_prnode * const *node, int comparator) return -(*node)->bounding_box.max.z; default: - dmnsn_assert(false, "Invalid comparator."); - return 0.0; /* Shut up compiler */ + dmnsn_unreachable("Invalid comparator."); } } |