Hi.
I'm doing a binding to a C game framework library and I'm manually tweaking some of the funcs. One function requires:
const void *value (value is a parameter)
Would I just need a CPointer for this?
The generated binding shows that for the value parameter it would accept CValuesRef<*>?
l
Landry Norris
09/28/2022, 9:27 PM
COpaquePointer should be what best maps to void*
k
Krystian
09/28/2022, 9:28 PM
Okay thank you! Just what I guessed
Krystian
09/28/2022, 9:28 PM
Appreciate it
l
Landry Norris
09/28/2022, 9:28 PM
If you have a C header, have you tried cinterop? It should be able to generate bindings for you.
k
Krystian
09/28/2022, 9:28 PM
I have and I have it auto generated but I have to manually tweak some functions
Krystian
09/28/2022, 9:29 PM
Mainly for conventions reasons and to allow mutable values rather than usage of immutable cvalues