Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHELL_EXPORT_CMD宏定义错误 #24

Open
mojinpan opened this issue Dec 26, 2019 · 1 comment
Open

SHELL_EXPORT_CMD宏定义错误 #24

mojinpan opened this issue Dec 26, 2019 · 1 comment

Comments

@mojinpan
Copy link

SHELL_EXPORT_CMD的宏定义中漏了一个逗号,导致编译错误

#else /** SHELL_LONG_HELP == 1 */
#define     SHELL_EXPORT_CMD(cmd, func, desc)                               \
            const char shellCmd##cmd[] = #cmd;                              \
            const char shellDesc##cmd[] = #desc;                            \
            const SHELL_CommandTypeDef                                      \
            shellCommand##cmd SECTION("shellCommand") =                     \
            {                                                               \
                shellCmd##cmd    (<----此处漏了逗号)                                           \
                (int (*)())func,                                            \
                shellDesc##cmd                                              \
            }
@NevermindZZT
Copy link
Owner

感谢指正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants