Skip to content

Namespace support #70

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

Merged
merged 2 commits into from
Nov 7, 2020
Merged

Namespace support #70

merged 2 commits into from
Nov 7, 2020

Conversation

adetaylor
Copy link
Collaborator

Fixes #50, with caveats which I will explain in #37.

This change adds partial C++ namespace support. We parse and accept
namespaced items in C++, but on the Rust side, everything is output
into a flat structure.

This means we can't cope with multiple types or functions with the
same name within different namespaces. cxx will generate an error
in such a case.

A future change will move these into nested mods, once that's
supported by cxx.
@adetaylor adetaylor mentioned this pull request Nov 7, 2020
@adetaylor adetaylor merged commit c7c2f51 into main Nov 7, 2020
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.

Namespaces
1 participant