jmullin
01/22/2018, 4:46 PMolonho
01/22/2018, 5:02 PMjmullin
01/22/2018, 5:07 PMNote that some function types are not supported currently. For example, it is not possible to get pointer to function that receives or returns structs by value.
fun returnsStructByValue(): CValue<foo_struct> {...}
fun attemptFunctionPointer() {
// error: type CValue<foo_struct> is not supported in callback signature
staticCFunction(::returnsStructByValue)
}
typedef struct {
void *foo;
} foo_struct;
olonho
01/22/2018, 5:34 PMjmullin
01/22/2018, 5:56 PM