1.优化export。

This commit is contained in:
MacRsh
2024-01-19 21:10:15 +08:00
parent 0355536d1d
commit 3d6344a090
4 changed files with 6 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ static struct
} msh;
#define MR_MSH_EXPORT(name, fn, help, level) \
MR_USED const struct mr_msh_cmd _mr_msh_cmd_##name MR_SECTION(".mr_msh_cmd."level) = {#name, fn, help};
MR_USED const struct mr_msh_cmd _mr_msh_cmd_##name MR_SECTION("mr_msh_cmd."level) = {#name, fn, help};
MR_MSH_EXPORT(start, MR_NULL, MR_NULL, "0");
MR_MSH_EXPORT(end, MR_NULL, MR_NULL, "1.end");