mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
execinfo: add cplusplus support
N/A Change-Id: Ided2e01c6dcc2d556fe8bccbe036601000d27552 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
e395bced19
commit
8327f4b825
1 changed files with 14 additions and 0 deletions
|
|
@ -25,6 +25,15 @@
|
|||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_EABI_UNWINDER)
|
||||
|
||||
/* Store up to SIZE return address of the current program state in
|
||||
|
|
@ -37,4 +46,9 @@ extern void dump_stack(void);
|
|||
# define dump_stack()
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_EXECINFO_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue