Native interop: vararg support #774
Labels
area:cil-interop
Related to CIL (.NET) interop
kind:feature
New feature or request
status:help-wanted
Open for contributors
@kekyo mentioned some concerns he had during building of chibicc-cil, a project sharing some purposes with Cesium.
Here's a Fediverse thread: https://mastodon.sdf.org/@kekyo/113932383592543947
In short, one of the downsides was the lack of proper native vararg support in .NET on platforms other than Windows.
Related issue in .NET runtime: dotnet/runtime#48796
If we want to enable full native interop in Cesium, then we'll have to do something about this.
My current idea would be to include a custom marshaller, or native modules, or runtime machine code emit, and support for the common call conventions.
Whatever route we take, we could consider implementing this in a shared library for the other projects to reuse if they need.
The text was updated successfully, but these errors were encountered: