diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2023-12-01 19:50:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-01 19:50:10 +0000 |
| commit | adcea23cb0d18a94e20249a40945ca107c4dc85d (patch) | |
| tree | d4c73381e00e5f96490c0ce8740e51d0c96b4fff /lib/libspl/include/assert.h | |
| parent | 3e4bef52b084dacc0f1abdaec428c0bdfb73f96d (diff) | |
Diffstat (limited to 'lib/libspl/include/assert.h')
| -rw-r--r-- | lib/libspl/include/assert.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libspl/include/assert.h b/lib/libspl/include/assert.h index d8c5e203f42f..57f5719c1ac1 100644 --- a/lib/libspl/include/assert.h +++ b/lib/libspl/include/assert.h @@ -64,6 +64,9 @@ libspl_assert(const char *buf, const char *file, const char *func, int line) #undef verify #endif +#define PANIC(fmt, a...) \ + libspl_assertf(__FILE__, __FUNCTION__, __LINE__, fmt, ## a) + #define VERIFY(cond) \ (void) ((!(cond)) && \ libspl_assert(#cond, __FILE__, __FUNCTION__, __LINE__)) |
