ladybird/AK/Assertions.h

18 lines
258 B
C++

#pragma once
#ifdef SERENITY
#include <Kernel/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;