Files
mop3/kernel/libk/assert.h
kamkow1 c8fb575bdd
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s
Change formatting rules
2026-04-24 01:54:48 +02:00

17 lines
861 B
C

#ifndef _KERNEL_LIBK_ASSERT_H
#define _KERNEL_LIBK_ASSERT_H
#include <sys/debug.h>
#include <sys/spin.h>
#define assert(x) \
do { \
if (!(x)) { \
DEBUG("%s ssertion failed\n", #x); \
spin(); \
__builtin_unreachable(); \
} \
} while (0)
#endif // _KERNEL_LIBK_ASSERT_H