mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:17:46 +00:00
Start fixing up AK to work inside the kernel.
This commit is contained in:
parent
1203c327c7
commit
5d465582a3
10 changed files with 68 additions and 47 deletions
|
@ -1,13 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef SERENITY_KERNEL
|
||||
#include "kassert.h"
|
||||
#else
|
||||
#include <assert.h>
|
||||
|
||||
#define ASSERT(x) assert(x)
|
||||
#define ASSERT_NOT_REACHED() assert(false)
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
inline void notImplemented() { assert(false); }
|
||||
inline void notImplemented() { ASSERT(false); }
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue