nshlib: support c++ access nsh api

N/A

Change-Id: I90de4a4ce1f089a2db2e3b81f83f7b39434d6421
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-07-07 11:24:31 +08:00 committed by Xiang Xiao
parent ca70e585b1
commit 32e7a7fde0

View File

@ -799,6 +799,11 @@ extern const char g_fmtsignalrecvd[];
* Public Function Prototypes * Public Function Prototypes
****************************************************************************/ ****************************************************************************/
#if defined(__cplusplus)
extern "C"
{
#endif
/* Initialization */ /* Initialization */
#ifdef CONFIG_NSH_ROMFSETC #ifdef CONFIG_NSH_ROMFSETC
@ -1403,4 +1408,8 @@ int nsh_foreach_var(FAR struct nsh_vtbl_s *vtbl, nsh_foreach_var_t cb,
FAR void *arg); FAR void *arg);
#endif #endif
#if defined(__cplusplus)
}
#endif
#endif /* __APPS_NSHLIB_NSH_H */ #endif /* __APPS_NSHLIB_NSH_H */