blob: fe5dcd9428e887a8a67a7aabdd4e0e091df46419 [file] [log] [blame]
swissChili0b35bf22021-02-18 12:49:40 -08001#pragma once
2
3#include "kint.h"
4
5void kprintf(const char *format, ...);
swissChili825d46b2021-02-21 10:14:16 -08006void kassert_int(bool condition, const char *message, const char *file,
7 const int line);
swissChili0b35bf22021-02-18 12:49:40 -08008
9#define kassert(cond, msg) kassert_int((cond), (msg), __FILE__, __LINE__)
swissChili825d46b2021-02-21 10:14:16 -080010#define kpanic(msg) \
11 kassert(false, msg); \
12 __builtin_unreachable()