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

允许在C++编译环境中使用OOP #132

Open
c-cpp-a opened this issue Jun 11, 2023 · 2 comments
Open

允许在C++编译环境中使用OOP #132

c-cpp-a opened this issue Jun 11, 2023 · 2 comments

Comments

@c-cpp-a
Copy link

c-cpp-a commented Jun 11, 2023

检测编译环境是否为C++很简单。然后检测到后把结构体可以转为类,操作结构体的函数转为类成员,一些初始化和删除操作的函数转为构造函数和析构函数。这样可以有效减少新手使用EGE产生错误的概率,还避免了C++stl和C函数的割裂感。(是的,没错,现在我就是在体验这种割裂感)

@c-cpp-a
Copy link
Author

c-cpp-a commented Jun 17, 2023

其实对我来说,支持music,image,screen,text的封装就可以了。

@wysaid
Copy link
Owner

wysaid commented Jun 19, 2023

嗯, 其实内部就是class, 感觉是可以这么支持一下子... @royqh1979 @TheBadZhang @chirsz-ever 瞅瞅呢

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

No branches or pull requests

2 participants