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

Allow for translation of C++ references as C# byrefs #235

Open
PathogenDavid opened this issue Feb 12, 2022 · 0 comments
Open

Allow for translation of C++ references as C# byrefs #235

PathogenDavid opened this issue Feb 12, 2022 · 0 comments
Labels
Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-CppFeatures Issues concerning unsupported C++ features Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output

Comments

@PathogenDavid
Copy link
Member

C++ references and C# byrefs have similar (if not identical) semantics. Right now C++ references are emitted as C# pointers which isn't as nice to work with as the C++ API would be from C++.

We should (optionally) support emitting C++ references as C# byrefs.

IE:

  • ImVec2& x would be emitted as ref ImVec2 x
  • const ImVec& x would be emitted either as ImVec2 x or in ImVec2 x depending on developer preference
@PathogenDavid PathogenDavid added Concept-CppFeatures Issues concerning unsupported C++ features Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output labels Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-CppFeatures Issues concerning unsupported C++ features Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output
Projects
None yet
Development

No branches or pull requests

1 participant