提交 ab1f6218 编写于 作者: L lnlan

feat(kernel): 补充assert.c

【背景】
补充assert.c
【修改方案】
BUILD.gn中取消对assert.c屏蔽,assert.c中删除__assert和__assert2接口(这两
接口不是musl标准接口)。
【影响】
对现有的产品编译不会有影响。

re #I42HM7
Signed-off-by: Nlnlanc <lanleinan@163.com>
Change-Id: I630761bb2cadb83a15c1de3767a1cda292176fff
上级 0c8138ae
......@@ -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.
先完成此消息的编辑!
想要评论请 注册