Luna/kernel/include/std/assert.h
apio c604c074a1 Kernel: Rename ASSERT() to ensure()
Doesn't get stripped on release builds, so it shouldn't be named assert.
2022-11-02 19:38:15 +01:00

4 lines
105 B
C

#pragma once
#include "panic/Panic.h"
#define ensure(expr) (bool)(expr) || panic("Check failed: " #expr)