Join Slack
Powered by
Are there any progress for better handling C keywo...
# kotlin-native
h
hmole
09/23/2018, 10:38 AM
Are there any progress for better handling C keywords in Kotlin?
@NativeName
maybe?
e
elizarov
09/23/2018, 2:00 PM
Take look at `@CName`:
https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/kotlin/kotlin/native/Annotations.kt#L61
h
hmole
09/23/2018, 3:00 PM
It's only for functions sadly. I need for enum instances and variable names.
o
olonho
09/23/2018, 4:07 PM
What exactly are you trying to achieve? Why cannot you name them differently?
h
hmole
09/23/2018, 5:01 PM
I can and I did. It just would've been nice to have(or at least get a warning from kotlin plugin for varable names).
o
olonho
09/24/2018, 5:13 AM
generally, extending
@CName
on enum entries and top level variables may make sense
5
Views
Open in Slack
Previous
Next