diff options
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/util.h b/src/stdlib/util.h index 25cd49f9..e54c1cab 100644 --- a/src/stdlib/util.h +++ b/src/stdlib/util.h @@ -21,6 +21,8 @@ #define WHEN(type, subj, var, body) { type var = subj; switch (var.$tag) body } +#define UNREACHABLE_RETURN(t) { errx(1, "Unreachable"); t _unreachable; return _unreachable; } + #ifndef public #define public __attribute__ ((visibility ("default"))) #endif |
