All checks were successful
Build documentation / build-and-deploy (push) Successful in 42s
15 lines
737 B
C
15 lines
737 B
C
#ifndef _KERNEL_LIBK_ASSERT_H
|
|
#define _KERNEL_LIBK_ASSERT_H
|
|
|
|
#include <sys/spin.h>
|
|
|
|
#define assert(x) \
|
|
do { \
|
|
if (!(x)) { \
|
|
DEBUG ("%s ssertion failed\n", #x); \
|
|
spin (); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif // _KERNEL_LIBK_ASSERT_H
|