diff options
Diffstat (limited to 'kernel/include/lib/klib.h')
-rw-r--r-- | kernel/include/lib/klib.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/kernel/include/lib/klib.h b/kernel/include/lib/klib.h index cb1de01..7f66e90 100644 --- a/kernel/include/lib/klib.h +++ b/kernel/include/lib/klib.h @@ -189,7 +189,12 @@ unsigned int bound(unsigned int min, unsigned int value, unsigned int max); #define __PANIC_STR2(x) #x #define panic(...) __panic(__PANIC_STR(__LINE__), __FILE__, __VA_ARGS__) -#define assert(val, ...) do { if (!(val)) { panic(__VA_ARGS__); } } while (0) +#define assert(val, ...) \ + do { \ + if (!(val)) { \ + panic(__VA_ARGS__); \ + } \ + } while (0) /** * Abort the kernel with a given message. @@ -197,8 +202,8 @@ unsigned int bound(unsigned int min, unsigned int value, unsigned int max); * @param format - the format string * @param ... - variable args for the format */ -__attribute__((noreturn, format(printf, 3, 4))) -void __panic(const char *line, const char *file, const char *format, ...); +__attribute__((noreturn, format(printf, 3, 4))) void +__panic(const char *line, const char *file, const char *format, ...); /** * Fill dst with a stack trace consisting of return addresses in order |