Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Support variadic functions  #1

@Dominaezzz

Description

@Dominaezzz

At the moment Kotlin/Native doesn't support forwarding args to variadic C functions.

fun ImGui.text(fmt: String, varags args: Any?) {
    igText(fmt, *args)
}

result in

e:(...path...): When calling variadic C functions spread operator is supported only for *arrayOf(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions