Open jasonswearingen opened 3 years ago
my current ultra-hacky workaround is to use a post-codegen search replace script, in powershell
##hack: replace malformed autogen content
$replaceFile = '../Raylib-CsLo/autogen/bindings/RayMath.cs'
(Get-Content $replaceFile).replace('.operator=', '=') | Set-Content $replaceFile
That workaround is sufficient so this is not a critical issue for me.
This is somewhat expected. Not all C/C++ code has a direct equivalent in C# and so they have to be special cased with alternatives and there are tons of patterns that simply aren't handled today.
operator =
for example would need to be converted to some helper op_Assign
method.
I am seeing some bad output in generating code for header libraries, regarding local variable reassignment. the
cardinalAxis.operator=(tmp);
line below:The original cpp code in the
.h
file shows pretty normal stuff:using latest commit on github