1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 11:47:34 +00:00

Start fixing up AK to work inside the kernel.

This commit is contained in:
Andreas Kling 2018-10-16 13:59:28 +02:00
parent 1203c327c7
commit 5d465582a3
10 changed files with 68 additions and 47 deletions

View file

@ -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); }
}