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

[fix] cpp-bin 多维容器反序列化时为循环变量命名加上深度信息。 #129

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

neko1990
Copy link
Contributor

@neko1990 neko1990 commented Apr 8, 2024

cpp-*-bin 反序列化容器时,都是用的 i,n,_e,_k,_v变量名。如果容器嵌套,变量名会冲突。
这个问题和 #122 类似,相信其他语言前端也有。

这里给一个解决方案:当嵌套深度大于0时,给这些变量名加上 _{depth} 后辍。

@pirunxi pirunxi merged commit 21af2c5 into focus-creative-games:main Apr 11, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants