mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 12:50:55 +00:00
ffi: add c-style char* strings as a supported return type (#2)
This commit is contained in:
parent
4a9508ddc4
commit
03c278f5b1
@ -20,6 +20,7 @@ class JnaNativeProvider : NativeFunctionProvider {
|
||||
"float" -> function.invokeFloat(values)
|
||||
"double" -> function.invokeDouble(values)
|
||||
"void" -> function.invokeVoid(values)
|
||||
"char*" -> function.invokeString(values, false)
|
||||
else -> throw RuntimeException("Unsupported ffi return type: $type")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user