summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
author张世争 <[email protected]>2022-03-08 12:03:41 +0800
committerGitHub <[email protected]>2022-03-08 12:03:41 +0800
commit7746d288d73bf008d9ccb036832442c7bc3b888b (patch)
tree039cd561c58cb4ad40c0eea4ef0a2ce6f33af5ac /include/rtdef.h
parentfb61c7960b67928c8736bbf46f0071032b5c8e66 (diff)
优化bsp/simulator自动初始化 (#5634)
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index c6ea284ddf..920fa8dd40 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -214,7 +214,7 @@ typedef int (*init_fn_t)(void);
const char* fn_name;
};
#define INIT_EXPORT(fn, level) \
- const char __rti_level_##fn[] = level"__rt_init_"#fn; \
+ const char __rti_level_##fn[] = ".rti_fn." level; \
const char __rti_##fn##_name[] = #fn; \
__declspec(allocate("rti_fn$f")) \
RT_USED const struct rt_init_desc __rt_init_msc_##fn = \
@@ -226,7 +226,7 @@ typedef int (*init_fn_t)(void);
const init_fn_t fn;
};
#define INIT_EXPORT(fn, level) \
- const char __rti_level_##fn[] = level"__rt_init_"#fn; \
+ const char __rti_level_##fn[] = ".rti_fn." level; \
__declspec(allocate("rti_fn$f")) \
RT_USED const struct rt_init_desc __rt_init_msc_##fn = \
{__rti_level_##fn, fn };