diff options
| author | ardafu <[email protected]> | 2015-07-31 11:07:54 +0800 |
|---|---|---|
| committer | ardafu <[email protected]> | 2015-07-31 11:07:54 +0800 |
| commit | 667c03db97f2e85ca99b05236848290cf7d0c864 (patch) | |
| tree | 540e05b20f6aa5187d1ba720916428e4f2e00566 /components | |
| parent | 791c9b5833699d97e7afe5965d68cd5b23accb66 (diff) | |
[FINSH] Add macro MSH_CMD_EXPORT_ALIAS
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/finsh.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h index 0b270ddeaf..d134422aa9 100644 --- a/components/finsh/finsh.h +++ b/components/finsh/finsh.h @@ -347,8 +347,11 @@ struct finsh_sysvar* finsh_sysvar_lookup(const char* name); #ifdef FINSH_USING_MSH #define MSH_CMD_EXPORT(command, desc) \ FINSH_FUNCTION_EXPORT_CMD(command, __cmd_##command, desc) +#define MSH_CMD_EXPORT_ALIAS(command, alias, desc) \ + FINSH_FUNCTION_EXPORT_ALIAS(command, __cmd_##alias, desc) #else #define MSH_CMD_EXPORT(command, desc) +#define MSH_CMD_EXPORT_ALIAS(command, alias, desc) #endif struct finsh_token |
