提交 6cef725e 编写于 作者: O openharmony_ci 提交者: Gitee

!68 m核musl补充assert.c

Merge pull request !68 from lnlan/add_assert
......@@ -52,7 +52,7 @@ static_library(libc) {
"src/network/ntohl.c",
"src/network/ntohs.c",
"src/exit/abort.c",
#"src/exit/assert.c",
"src/exit/assert.c",
"src/ctype/isascii.c",
"src/ctype/isxdigit.c",
"src/ctype/isdigit.c",
......
......@@ -2,19 +2,6 @@
#include "los_context.h"
#include "los_debug.h"
void __assert(const char* file, int line, const char* expr) {
PRINT_ERR("__assert error: %s, %d, %s\n", file, line, expr);
LOS_Panic("__assert error:\n");
while (1);
}
void __assert2(const char* file, int line, const char* func, const char* expr) {
PRINT_ERR("%s:%d: %s: assertion \"%s\" failed\n", file, line, func, expr);
LOS_Panic("__assert error:\n");
while (1);
}
void __assert_fail(const char* expr, const char* file, int line, const char* func) {
PRINT_ERR("%s:%d: %s: assertion \"%s\" failed\n", file, line, func, expr);
LOS_Panic("__assert error:\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册