diff options
author | dzwdz | 2024-07-13 23:37:37 +0200 |
---|---|---|
committer | dzwdz | 2024-07-13 23:37:37 +0200 |
commit | c1d3ac750b8483c9a942d2fb5d5b7245d014e905 (patch) | |
tree | 630fb27832e15f3dfde0b0723c5e08a4421e8d22 /src/libk/include/assert.h | |
parent | ded843efbdad1ed048fe42c50c8fb68d50bafa51 (diff) |
kernel/malloc: limit the maximum allocation size to under a page
This will likely be changed back, but for the time being it will let me
implement a better allocator without too much effort.
Diffstat (limited to 'src/libk/include/assert.h')
-rw-r--r-- | src/libk/include/assert.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libk/include/assert.h b/src/libk/include/assert.h index affe1dc..c85d096 100644 --- a/src/libk/include/assert.h +++ b/src/libk/include/assert.h @@ -9,4 +9,6 @@ #define assert(stmt) (0) #endif +#define static_assert _Static_assert + _Noreturn void __badassert(const char *func, const char *file, int line); |