serenity/AK/Assertions.h

19 lines
258 B
C
Raw Normal View History

#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;