thread_fun 添加弱定义

This commit is contained in:
ranchuan
2024-12-27 19:07:01 +08:00
parent 4b2011f336
commit 09e6c52a46
3 changed files with 162 additions and 3 deletions

2
main.c
View File

@@ -23,7 +23,7 @@ const char g_str[] =
int thread_fun(void* t) {
__attribute__((weak)) int thread_fun(void* t) {
DBG_INFO("run in thread_fun.\n");
lex_analysis(g_str , strlen(g_str));