diff options
author | David Robillard <d@drobilla.net> | 2015-10-04 19:22:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-04 19:22:43 +0000 |
commit | 3f4d613ed7556d8420e7edebe1530c75193be5d0 (patch) | |
tree | 93e520baabf86165123079106ea8a2963d57f560 /src/sord_internal.h | |
parent | 73e41c329b66b53368bd40030c7a1fb3e17339a7 (diff) | |
download | sord-3f4d613ed7556d8420e7edebe1530c75193be5d0.tar.gz sord-3f4d613ed7556d8420e7edebe1530c75193be5d0.tar.bz2 sord-3f4d613ed7556d8420e7edebe1530c75193be5d0.zip |
Improve test coverage
git-svn-id: http://svn.drobilla.net/sord/trunk@335 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r-- | src/sord_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h index 5a7236d..71c2f6d 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -22,6 +22,12 @@ #include "sord/sord.h" +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) +# define SORD_UNREACHABLE() __builtin_unreachable() +#else +# define SORD_UNREACHABLE() assert(false) +#endif + /** Resource node metadata */ typedef struct { size_t refs_as_obj; ///< References as a quad object |