2018-10-10 12:53:07 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-28 11:36:21 +03:00
|
|
|
#ifdef KERNEL
|
2019-04-03 13:51:10 +03:00
|
|
|
#include <Kernel/Assertions.h>
|
2018-10-16 14:59:28 +03:00
|
|
|
#else
|
2019-04-20 13:58:02 +03:00
|
|
|
#include <assert.h>
|
|
|
|
#ifndef __serenity__
|
|
|
|
#define ASSERT assert
|
|
|
|
#define ASSERT_NOT_REACHED assert(false)
|
|
|
|
#endif
|
2018-10-28 11:36:21 +03:00
|
|
|
#endif
|
2018-10-10 12:53:07 +03:00
|
|
|
|
|
|
|
namespace AK {
|
|
|
|
|
2019-01-31 19:31:23 +03:00
|
|
|
inline void not_implemented() { ASSERT(false); }
|
2018-10-10 12:53:07 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-01-31 19:31:23 +03:00
|
|
|
using AK::not_implemented;
|
2018-10-10 12:53:07 +03:00
|
|
|
|