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

Support variadic functions #1

Open
Dominaezzz opened this issue Jan 9, 2020 · 1 comment
Open

Support variadic functions #1

Dominaezzz opened this issue Jan 9, 2020 · 1 comment

Comments

@Dominaezzz
Copy link
Owner

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(...)
@Dominaezzz
Copy link
Owner Author

Also consider voting for these.

They would eliminate the need for variadic support in kotlin-imgui.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant