diff options
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h index b8ed616..7b848db 100644 --- a/src/internal.h +++ b/src/internal.h @@ -211,4 +211,13 @@ void __nft_assert_fail(uint16_t attr, const char *filename, int line); nft_assert(data, attr, _validate_array[_attr] == _data_len); \ }) +#define __noreturn __attribute__((__noreturn__)) + +void __noreturn __abi_breakage(const char *file, int line, const char *reason); + +#include <string.h> + +#define abi_breakage() \ + __abi_breakage(__FILE__, __LINE__, strerror(errno)); + #endif |