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

Introduce ClassHash to uniquely identify classwrappers, make -fno-rtti work #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

swuerl
Copy link

@swuerl swuerl commented Nov 29, 2024

Currently micropython-wrap depends on typeid (RTTI) to do a full type check, and for naming anonymous classwrappers.
This PR replaces the use of RTTI by a static object based hash for types to perform the full type check. Also anonymously wrapped types can optionally function without RTTI, by naming them AnonymousClasswrapper.

As a side note: I've also experimented with naming the anonymous wrapper via __PRETTY_FUNCTION__, but getting this to work reliably across all toolchains and versions is a bit of a mess. If you want, I can still implement this though.

I've also tried adding a CI test run for -fno-rtti, but I've not worked with appveyor yet, so lets see if this worked.

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.

1 participant