mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10:55 +00:00
ffi: add c-style char* strings as a supported return type
This commit is contained in:
parent
3a43b56fcd
commit
e4bb342f06
@ -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