ladybird/AK/Assertions.h
2018-10-16 13:59:28 +02:00

18 lines
258 B
C++

#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); }
}
using AK::notImplemented;