From 6791c0c81ea1b361d2209adf67026d2e0197745d Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 16 Jun 2024 10:59:31 +0800 Subject: [PATCH] fix names --- include/pocketpy/common/strname.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/common/strname.h b/include/pocketpy/common/strname.h index da375328..1742130a 100644 --- a/include/pocketpy/common/strname.h +++ b/include/pocketpy/common/strname.h @@ -14,6 +14,15 @@ const char* pkpy_StrName__rmap(uint16_t index); void pkpy_StrName__initialize(); void pkpy_StrName__finalize(); +#ifdef __cplusplus +} +#endif + +/* global names */ +#ifdef __cplusplus +extern "C" { +namespace pkpy { +#endif // unary operators extern uint16_t __repr__; @@ -73,5 +82,6 @@ extern uint16_t pk_id_long; extern uint16_t pk_id_complex; #ifdef __cplusplus -} -#endif \ No newline at end of file +} // namespace pkpy +} // extern "C" +#endif