2018-10-10 11:53:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-22 14:06:22 +02:00
|
|
|
#ifdef SERENITY
|
2018-10-28 09:36:21 +01:00
|
|
|
#ifdef KERNEL
|
2018-10-25 10:00:37 +02:00
|
|
|
#include <Kernel/kassert.h>
|
2018-10-16 13:59:28 +02:00
|
|
|
#else
|
2018-10-28 09:36:21 +01:00
|
|
|
#include <LibC/assert.h>
|
|
|
|
#endif
|
|
|
|
#else
|
2018-10-10 11:53:07 +02:00
|
|
|
#include <assert.h>
|
|
|
|
#define ASSERT(x) assert(x)
|
|
|
|
#define ASSERT_NOT_REACHED() assert(false)
|
2018-10-16 13:59:28 +02:00
|
|
|
#endif
|
2018-10-10 11:53:07 +02:00
|
|
|
|
|
|
|
namespace AK {
|
|
|
|
|
2018-10-16 13:59:28 +02:00
|
|
|
inline void notImplemented() { ASSERT(false); }
|
2018-10-10 11:53:07 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
using AK::notImplemented;
|
|
|
|
|