summaryrefslogtreecommitdiff
path: root/src/kernel/panic.h
diff options
context:
space:
mode:
authordzwdz2022-08-06 23:53:42 +0200
committerdzwdz2022-08-06 23:53:42 +0200
commit809f9a9899b219e33ec839b3f9bee644fcfecacc (patch)
tree5a4f4149859d5e834b5fe73b52a5e95e7e2d749b /src/kernel/panic.h
parente86d720f6481e83ff555989006b7f62433318f57 (diff)
shared assert.h
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r--src/kernel/panic.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/panic.h b/src/kernel/panic.h
index 4e591f1..12c0d64 100644
--- a/src/kernel/panic.h
+++ b/src/kernel/panic.h
@@ -1,4 +1,5 @@
#pragma once
+#include <assert.h>
#include <kernel/arch/generic.h>
#include <kernel/util.h>
@@ -12,6 +13,3 @@
#define panic_invalid_state() _panic("invalid state")
#define panic_unimplemented() _panic("unimplemented")
-#define assert(stmt) do { if (!(stmt)) _panic("assert"); } while (0)
-
-#undef panic