diff options
author | Richard Braun <rbraun@sceen.net> | 2017-03-04 18:13:14 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-03-04 18:13:14 +0100 |
commit | 9ed05f3ef371e569eafd49c0924fea2499f5f6fe (patch) | |
tree | faa4444b128b770bf4592104d1ffbd1b3f36172e /kern/assert.h | |
parent | 3e2e232b5308b1365e66bf664d9562455d6cad1b (diff) |
Add missing braces for one-line blocks
Diffstat (limited to 'kern/assert.h')
-rw-r--r-- | kern/assert.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/assert.h b/kern/assert.h index d0fd08a5..7c06f6a7 100644 --- a/kern/assert.h +++ b/kern/assert.h @@ -30,9 +30,10 @@ */ #define assert(expression) \ MACRO_BEGIN \ - if (unlikely(!(expression))) \ + if (unlikely(!(expression))) { \ panic("assertion (%s) failed in %s:%d, function %s()", \ __QUOTE(expression), __FILE__, __LINE__, __func__); \ + } \ MACRO_END #endif /* NDEBUG */ |