2018-10-10 09:53:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-08-02 07:23:03 +00:00
|
|
|
#ifndef AK_TEST_SUITE
|
|
|
|
|
2018-10-28 08:36:21 +00:00
|
|
|
#ifdef KERNEL
|
2019-05-28 09:53:16 +00:00
|
|
|
# include <Kernel/Assertions.h>
|
2018-10-16 11:59:28 +00:00
|
|
|
#else
|
2019-05-28 09:53:16 +00:00
|
|
|
# include <assert.h>
|
|
|
|
# ifndef __serenity__
|
|
|
|
# define ASSERT assert
|
2019-06-18 06:52:21 +00:00
|
|
|
# define ASSERT_NOT_REACHED() assert(false)
|
2019-07-26 20:15:54 +00:00
|
|
|
# define RELEASE_ASSERT assert
|
2019-05-28 09:53:16 +00:00
|
|
|
# endif
|
2018-10-28 08:36:21 +00:00
|
|
|
#endif
|
2018-10-10 09:53:07 +00:00
|
|
|
|
2019-08-02 07:23:03 +00:00
|
|
|
#endif
|
|
|
|
|
2018-10-10 09:53:07 +00:00
|
|
|
namespace AK {
|
|
|
|
|
2019-01-31 16:31:23 +00:00
|
|
|
inline void not_implemented() { ASSERT(false); }
|
2018-10-10 09:53:07 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-01-31 16:31:23 +00:00
|
|
|
using AK::not_implemented;
|