Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant