MochiLibraries / Biohazrd

A framework for automatically generating binding wrappers for C/C++ libraries
MIT License
60 stars 8 forks source link

Investigate using source generators to simplify handling return buffer semantics when overriding C++ classes from C# #192

Open PathogenDavid opened 3 years ago

PathogenDavid commented 3 years ago

We could use source generators to automatically generate the vtable stuff for C# overrides of C++ classes to avoid having the C# consumer from worrying about the thisptr/retbuf semantics without sacrificing performance or generating a bunch of different vtables.

PathogenDavid commented 3 years ago

Related: https://github.com/InfectedLibraries/Biohazrd/issues/89