Skip to content

Native interop: vararg supportΒ #774

@ForNeVeR

Description

@ForNeVeR

@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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions