Biohazrd
Biohazrd copied to clipboard
Allow for translation of C++ references as C# byrefs
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 asref ImVec2 x
-
const ImVec& x
would be emitted either asImVec2 x
orin ImVec2 x
depending on developer preference