summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-11-16 17:01:02 -0500
committerTavian Barnes <tavianator@gmail.com>2011-11-16 17:01:53 -0500
commit78dca8153f802f271b4f2aeca33d967a075e485e (patch)
treecaf18232cb7d5256efaa853373644e810e1af014 /libdimension/prtree.c
parentb8cfc42881e7045a6c93fcd5b64b14cefa8d6c5c (diff)
downloaddimension-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.c3
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.");
}
}