summaryrefslogtreecommitdiff
path: root/AK/Assertions.h
blob: bd2404cd68406e43410a3dc26a3c3dec3192f24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#ifdef KERNEL
#include <Kernel/Assertions.h>
#else
#include <assert.h>
#ifndef __serenity__
#define ASSERT assert
#define ASSERT_NOT_REACHED assert(false)
#endif
#endif

namespace AK {

inline void not_implemented() { ASSERT(false); }

}

using AK::not_implemented;