Implement CValuesRef in interop
* Represent pointer parameters of C functions as `CValuesRef`. * Represent struct value parameters as `CValue`. * Implement some helper methods to make the new approach more useful. * Migrate some code to new interop approach for pointers and values. Also do not map to `String?`: - pointers to 8-bit integers; - pointers to non-const chars.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
7a876a3ccd
commit
c9d8d4d57d
@@ -24,7 +24,7 @@ fun main(args: Array<String>) = memScoped {
|
||||
}
|
||||
val error = errorRef.value
|
||||
if (error != null) {
|
||||
println(error.asCString().toString())
|
||||
println(error.toKString())
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user