mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
e904f193c1
With a bunch of LibC work to support the feature. LibC now initializes AK::StringImpl by default. It's now fine to use AK in LibC/Userland! :^)
22 lines
310 B
C++
22 lines
310 B
C++
#pragma once
|
|
|
|
#ifdef SERENITY
|
|
#ifdef KERNEL
|
|
#include <Kernel/kassert.h>
|
|
#else
|
|
#include <LibC/assert.h>
|
|
#endif
|
|
#else
|
|
#include <assert.h>
|
|
#define ASSERT(x) assert(x)
|
|
#define ASSERT_NOT_REACHED() assert(false)
|
|
#endif
|
|
|
|
namespace AK {
|
|
|
|
inline void notImplemented() { ASSERT(false); }
|
|
|
|
}
|
|
|
|
using AK::notImplemented;
|
|
|