bond/kernel/ke/assert.c

12 lines
256 B
C
Raw Normal View History

2018-01-25 19:11:22 +00:00
#include "type.h"
2018-01-26 08:43:22 +00:00
#include "kernel/ke/assert.h"
#include "kernel/ke/print.h"
2016-08-28 09:14:22 +00:00
2018-03-24 00:58:24 +00:00
void ke_assert_ex(const char *expr_str, const char *file, int32 line, int32 expr)
2016-08-28 09:14:22 +00:00
{
2018-02-18 04:06:57 +00:00
if (!expr)
{
ke_printf("Assertion \"%s\" failed at %s:%d.\n", expr_str, file, line);
}
2018-03-24 00:58:24 +00:00
}