2017-02-01 03:26:08 +00:00
|
|
|
#ifndef _ASSERT_H_
|
|
|
|
#define _ASSERT_H_
|
2016-08-28 00:20:38 +00:00
|
|
|
|
2018-01-25 09:53:35 +00:00
|
|
|
#include "type.h"
|
|
|
|
#include "abi.h"
|
2016-08-28 00:20:38 +00:00
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
void KABI ke_assert_ex(const char* expr_str, const char* file, int32_t line, int32_t expr);
|
2016-08-28 00:20:38 +00:00
|
|
|
|
2016-08-28 09:14:22 +00:00
|
|
|
#define ke_assert(expr) ke_assert_ex(#expr, __FILE__, __LINE__, expr)
|
2016-08-28 00:20:38 +00:00
|
|
|
|
|
|
|
#endif
|