kernel/src/panic.h

12 lines
252 B
C
Raw Normal View History

2021-12-12 14:00:17 +00:00
#ifndef KERNEL_INCLUDED_PANIC
#define KERNEL_INCLUDED_PANIC 1
2017-11-08 04:49:30 +00:00
2021-12-14 23:53:05 +00:00
#include <kernaux/assert.h>
2017-11-08 04:49:30 +00:00
2017-11-08 04:54:47 +00:00
#define assert(cond, s) { if (!(cond)) { panic(s); } }
2021-12-14 23:53:05 +00:00
void panic(const char *s);
void kernaux_assert_fn(const char *file, int line, const char *str);
2017-11-08 04:49:30 +00:00
#endif